i have 2 models: Order hasMany Item.
- the hasMany has the option "dependent" set to TRUE.
- Item model has a virtual field defined like this: var $virtualFields
= array("barcode" => "CONCAT(Order.code, REPEAT('0', 10 - LENGTH
(Item.code)), Item.code)");
when i delete an order cake will attempt to delete all the related
items, returning an error that sounds like "i can't find Order.code in
your table"
is this a bug?
cake should ignore virtual fields in delete queries
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment