KnpLabs / DoctrineBehaviors

Doctrine2 behavior traits that help handling Blameable, Loggable, Sluggable, SoftDeletable, Uuidable, Timestampable, Translatable, Tree behavior
http://knplabs.com
MIT License
911 stars 286 forks source link

doctrine/orm 2.17.0 and Translatable fetch mode incompatibility #746

Open alcohol opened 7 months ago

alcohol commented 7 months ago

We have been using the following:

parameters:
  doctrine_behaviors_translatable_fetch_mode: 'EAGER'
  doctrine_behaviors_translation_fetch_mode: 'EAGER'

However, this seems incompatible with doctrine/orm 2.17.0, resulting in an exception being thrown:

Associations with fetch-mode=EAGER may not be using WITH conditions in "<RedactedEntity>#translatable".

Maybe consider documenting this or determine if this is worth further investigation?