Closed siggi-k closed 7 months ago
Update
I tried with
invoice:
allOf:
- $ref: '#/components/schemas/Invoice'
- x-faker: false
Unfortunately that doesn't work either.
The following is then generated for the migration:
$model->invoice = $faker->sentence;
But i need this field empty.
Meanwhile the issue is being fixed, this work-around can be used:
`x-faker: '$faker->optional(0, null)->sentence'`
Edit:
Sorry, it won't work in referenced property at this moment
Initial
schema.yaml
Reproduction steps
$ref:
ANDx-faker
on same attributeExpected Ref-Attribute with NULL in every row.
Result Don't work
UseCase You already have orders, but the corresponding invoices are only made later, by a self-written function, and not by faker.