Monday, September 19, 2011

Oop Question? - accessing protected model methods from behaviours.

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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate