Skip to content

Fix php doc for getPropertyAccessors method#12158

Closed
dmitryuk wants to merge 17 commits intodoctrine:3.6.xfrom
dmitryuk:fix-doc
Closed

Fix php doc for getPropertyAccessors method#12158
dmitryuk wants to merge 17 commits intodoctrine:3.6.xfrom
dmitryuk:fix-doc

Conversation

@dmitryuk
Copy link
Copy Markdown
Contributor

@dmitryuk dmitryuk commented Sep 9, 2025

Fixes:

  1. getPropertyAccessors returns PropertyAccessor instead ReflectionProperties
  2. getPropertyAccessors returns associative array mapped by accessor name, not a list

mpdude and others added 14 commits March 30, 2025 22:44
… on to-many-collections

This fixes that using a `Criteria` with an `IN` or `NIN` expression on a to-many collection currently leads to an SQL error (doctrine#6173). The `ManyToMany` persister needs to know about the slightly different SQL syntax for `[NOT] IN ()`.

In the case of `[NOT] IN` expressions, the value will be an array, which also required me to change (I guess "fix") the parameter type handling. I have pulled the necessary code from the `BasicEntityPersister` and placed it as static helper methods in `PersisterHelper`.

This is somewhat inspired by doctrine#11516, which aims at fixing doctrine#11481: By re-using the parameter type handling code, it also fixes using backed enums in `EQ`, `IN` and `NIN` expressions within `Criteria` when `matching()` on one-to-many and many-to-many collections.
self::returnValue() and self::onConsecutiveCalls() has been deprecated.
It seems that this could happen with PHPUnit 10, then tearDown() would
crash when calling `clear()` on null, but then PHPUnit 10 did not show
that exception.
…ression

Fix `IN`/`NOT IN` expression handling and support enums when matching on to-many-collections
…trategies-dbal-4

docs: generation strategies: differences between DBAL 3 and 4
* Gets the ReflectionProperties of the mapped class.
* Gets the PropertyAccessors of the mapped class.
*
* @return PropertyAccessor[] An array of PropertyAccessor instances.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This does not mean list, this means array. So this was correct. Therefore, this change should target 3.6.x

@dmitryuk dmitryuk changed the base branch from 3.5.x to 3.6.x September 9, 2025 10:09
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.

4 participants