Be aware of this bug when using beforeFind in a behavior to to permission stuff: https://trac.cakephp.org/ticket/2056
If you really want to do such things. To it in afterFind with array filtering (see Set:: and array_) Have fun and good luck. On Aug 13, 2:14 pm, subnoodle <[email protected]> wrote: > Hello, > i'd like to add "ownership-support" in models in general way. > > So, i put some filtering in beforeFind, first. > SInce i regognized, that parameter $queryData does not work as > expected. > > In CakeDoc is described, that queryData is an arrray of find- > parameters. But is 's actually the model object itself. > > So, adding 'conditions' to queryData does not work, additionally > $queryData->conditions is an unknown property. > > So, my questions are: > a) Can i cope queryData to filter via 'conditions' > b) Can i achive filtering also in model relations (belogs to, etc.) > and how? (I think, the join will be generated without the filter of > the secondary table) > c) Can i achive filtering in selectboxes of view in related tables? > ==> And this all in only one behavior? > > Thanks a lot, Sam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
