How to combine Translate and Soft Deletable Behavior in CakePHP 1.2.7?

Posted by m99 on Stack Overflow See other posts from Stack Overflow or by m99
Published on 2010-05-19T07:16:05Z Indexed on 2010/05/19 7:20 UTC
Read the original article Hit count: 295

Filed under:
|
|
|

Hi guys,

i'm trying to combine Translate Behavior and Mariano Iglesias' Soft Deletable Behavior Revision 49. But always if a want to soft delete a record which hasMany other records, which are translated (located in the i18n-table partly), the related hasMany records aren't soft deleted.

Example:

  • Post hasMany Comments (dependent = true)
  • Post actsAs SoftDeletable
  • Comments actsAs SoftDeletable, Translate

Post record get's soft deleted, but I also get an error for the dependent Comment records and they aren't soft deleted.

Any suggestions?

Thanks in advance Marco

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about translate