KnpLabs / DoctrineBehaviors

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

getSingleIdentifierFieldName can cause a scheme error #690

Open connorhu opened 2 years ago

connorhu commented 2 years ago

This part can cause a bug if field name not equals with column name in your project: https://github.com/KnpLabs/DoctrineBehaviors/blob/16a059fbc4d89b08cd0a46ca6ca0fd0f3fb7c9fd/src/EventSubscriber/TranslatableEventSubscriber.php#L129-L138