Hi,
I have used beforefinder call function into the model file
-- I have used beforefinder call function into the model file
public function beforeFind(Query $query){ return $query->where('User.status'=>0) }
We don't need that record when the user status is '0',How to write the common query in table file
How to use 'beforeFind' call back function in cakephp 3.0.
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at https://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment