Skip to content

Attribute on complex-type is missing in type-generation #420

Answered by veewee
orbdex asked this question in Q&A
Discussion options

You must be logged in to vote

It does create this class:

class Quantity
{
    /**
     * @var \App\Lib\ApiClients\SAPByD\ManagePurchaseRequestIn\Type\QuantityContent
     */
    private $_;

    /**
     * @var string
     */
    private $unitCode;
}

The _ here is the (float) value of the xml element and the unitCode is the attribute.
You normally can set this to PurchaseRequestItemManually->quantity (but strict types won't work)

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@orbdex
Comment options

Comment options

You must be logged in to vote
4 replies
@orbdex
Comment options

@veewee
Comment options

@orbdex
Comment options

@veewee
Comment options

Answer selected by orbdex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants