Skip to content
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

api: set report_fields_where_declared:true in doctrine.yaml for doctr… #3749

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

BacLuc
Copy link
Contributor

@BacLuc BacLuc commented 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. Edit by @BacLuc: This was wrong

closes #3740

@BacLuc BacLuc force-pushed the report_fields_where_declared branch from 34a9ad9 to 75e12f4 Compare September 3, 2023 20:11
@BacLuc BacLuc mentioned this pull request Sep 3, 2023
@usu usu added the deploy! Creates a feature branch deployment for this PR label Sep 12, 2023
@usu usu temporarily deployed to feature-branch September 12, 2023 20:19 — with GitHub Actions Inactive
@github-actions
Copy link

github-actions bot commented Sep 12, 2023

Feature branch deployment currently inactive.

If the PR is still open, you can add the deploy! label to this PR to trigger a feature branch deployment.

api/src/Entity/ContentNode.php Outdated Show resolved Hide resolved
@BacLuc BacLuc temporarily deployed to feature-branch September 19, 2023 19:27 — with GitHub Actions Inactive
…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
@BacLuc BacLuc temporarily deployed to feature-branch September 19, 2023 19:39 — with GitHub Actions Inactive
Copy link
Member

@carlobeltrame carlobeltrame left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 feel free to merge when you are done force pushing

@BacLuc BacLuc added this pull request to the merge queue Sep 21, 2023
Merged via the queue into ecamp:devel with commit 3786787 Sep 21, 2023
26 checks passed
@BacLuc BacLuc deleted the report_fields_where_declared branch December 23, 2023 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy! Creates a feature branch deployment for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate data property of ContentNode and child classes to support Doctrine ORM 3.0
3 participants