Skip to content

Conversation

baspeeters
Copy link
Contributor

To maintainers @dunglas, @sroze or @theofidry

Properties that are superseded or superseded by a property were both all
created, causing duplicate properties in classes.

For example, property $award supersedes $award in CreativeWork
(https://schema.org/award) but both of these properties were generated
in the class:

/**
 * @var string|null an award won by or for this item
 *
 * @ORM\Column(type="text", nullable=true)
 * @ApiProperty(iri="http://schema.org/award")
 */
private $award;

/**
 * @var string|null awards won by or for this item
 *
 * @ORM\Column(type="text", nullable=true)
 */
protected $award;

This change uses the property which has been declared as superseding.

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #114, #152
License MIT
Doc PR

Properties that are superseded or superseded by a property were both all
created, causing duplicate properties in classes.

For example, property `$award` supersedes `$award` in `CreativeWork`
(https://schema.org/award) but both of these properties were generated
in the class:

```
/**
 * @var string|null an award won by or for this item
 *
 * @Orm\Column(type="text", nullable=true)
 * @ApiProperty(iri="http://schema.org/award")
 */
private $award;

/**
 * @var string|null awards won by or for this item
 *
 * @Orm\Column(type="text", nullable=true)
 */
protected $award;
```

This change uses the property which has been declared as superseding.
@dunglas dunglas merged commit eca0e83 into api-platform:master Jul 24, 2019
@dunglas
Copy link
Member

dunglas commented Jul 24, 2019

Thanks! And sorry for the delay.

@baspeeters
Copy link
Contributor Author

@dunglas Awesome! Thanks 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants