Iam using Sonata Admin. Have a House
and Room
entitys with one to many relation. Iam use the CollectionType
field for relation.
If i check delete
, when edit a list of rooms and press Save
- it set null relation field house_id
in room
table, but record still not delete.
How to fix this? Thx.
给关系领域
Cascade ={"remove"}, orphanRemoval=true
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.