Skip to content

Migrate data property of ContentNode and child classes to support Doctrine ORM 3.0 #3740

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BacLuc opened this issue Aug 27, 2023 · 0 comments · Fixed by #3749
Closed

Migrate data property of ContentNode and child classes to support Doctrine ORM 3.0 #3740

BacLuc opened this issue Aug 27, 2023 · 0 comments · Fixed by #3749
Assignees

Comments

@BacLuc
Copy link
Contributor

BacLuc commented Aug 27, 2023

doctrine/orm#10455

If we activate this switch, the api service fails to start because the
public data property of ContentNode is overridden in the children.
See https://github.com/BacLuc/ecamp3/tree/report_fields_where_declared

Idea:
Use setters for the additional validation, and getters for the api_platform openapi documentation
but don't redeclare the doctrine orm column $data

@BacLuc BacLuc moved this to Ready for implementation in Development Kanban Aug 27, 2023
@BacLuc BacLuc self-assigned this Sep 3, 2023
BacLuc added a commit to BacLuc/ecamp3 that referenced this issue Sep 3, 2023
…ine/orm 3

And don't overwrite the doctrine definition for the same field
again with the same values.
Now we define the Constraints on the getter,
because api-platform only allows to define constraints on a getter.
Remove the example on ContentNode::data, because then this example
was used for all children for the data property instead of the example
on the getter.

Issue: ecamp#3740
BacLuc added a commit to BacLuc/ecamp3 that referenced this issue Sep 3, 2023
…ine/orm 3

And don't overwrite the doctrine definition for the same field
again with the same values.
Now we define the Constraints on the getter,
because api-platform only allows to define constraints on a getter.
Move the example on ContentNode::data to the getter, because then this example
was used for all children for the data property instead of the example
on the getter.
Now the comment for the property still overwrites the comments for the getters,
but this is ok as the inheritance is an implementation detail,
and must not be exposed in the api.

Issue: ecamp#3740
BacLuc added a commit to BacLuc/ecamp3 that referenced this issue Sep 3, 2023
…ine/orm 3

And don't overwrite the doctrine definition for the same field
again with the same values.
Now we define the Constraints on the getter,
because api-platform only allows to define constraints on a getter.
Move the example on ContentNode::data to the getter, because then this example
was used for all children for the data property instead of the example
on the getter.
Now the comment for the property still overwrites the comments for the getters,
but this is ok as the inheritance is an implementation detail,
and must not be exposed in the api.

Issue: ecamp#3740
@BacLuc BacLuc moved this from Ready for implementation to In Progress in Development Kanban Sep 3, 2023
BacLuc added a commit to BacLuc/ecamp3 that referenced this issue Sep 19, 2023
…ine/orm 3

And don't overwrite the doctrine definition for the same field
again with the same values.
Now we define the Constraints on the getter,
because api-platform only allows to define constraints on a getter.
Move the example on ContentNode::data to the getter, because then this example
was used for all children for the data property instead of the example
on the getter.
Now the comment for the property still overwrites the comments for the getters,
but this is ok as the inheritance is an implementation detail,
and must not be exposed in the api.

Issue: ecamp#3740
BacLuc added a commit to BacLuc/ecamp3 that referenced this issue Sep 19, 2023
…ine/orm 3

And don't overwrite the doctrine definition for the same field
again with the same values.
Now we define the Constraints on the getter,
because api-platform only allows to define constraints on a getter.
Move the example on ContentNode::data to the getter, because then this example
was used for all children for the data property instead of the example
on the getter.

Issue: ecamp#3740
@github-project-automation github-project-automation bot moved this from In Progress to Done in Development Kanban Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

1 participant