Beforefinder call function is not work in cakephp 3.x

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Beforefinder call function is not work in cakephp 3.x

Karthik Keyan
   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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.