Well, you can just use the public method `public Model::delete($id =
null, $cascade = true)`, which will call `protected
_Model::_deleteDependent($id, $cascade)`. Basically this is just a
search and replace operation in the Behavior's code.
Kind regards
Thomas
Am 19.09.2011 09:36, schrieb #2Will:
Hello
I am trying to use Mariano's soft delete plugin with cakephp 2.0 but
have come accross little problem
"Call to protected method Model::_deleteDependent() from context
'SoftDeletableBehavior' "
so thats "$model->_deleteDependent($id, $cascade);" on line 102
This error is because as per the migration guides comments, there are
now visibility keywords for model methods.
so, how can i access these methods from the behaviour?
Thanks for any help. it would be really usefull to get this working
as its a behaviour im sure lots of people use a lot.
Will
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php