简体   繁体   中英

doctrine detect new manytomany relation

I create preupdate and prepersist event listener for doctrine. Have enity and i want check manytomany relation - is new or not.

task->tags 

if tag is new do something

Sorry, Doctrine doesn't support preUpdate listener for association changes.

http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#preupdate

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM