|
When using softdelete behaviour with cascading deletion on a one-to-one relationship, Doctrine will create a 'child' record if it doesn't exist already, during the cascading deletion. Eg:
- Models Foo, Bar, both SoftDelete
- Foo hasOne Bar
- $myFoo->delete()
Result is:
- $myFoo->deleted_at is set correctly as expected
- New Bar record is created & saved in the process (but is not set to deleted)
Is this expected behaviour? I've attached a test case script, tested against export from SVN of Doctrine 1.2.3 that demonstrates this.
|