I just tried that ( out of scientific interest, I already moved my check
in the controller actions)
Yes in beforeFilter I get the findQueryType "count" and "all".
Anyhow: Good to know such a thing exists f I should need it in one of my
1.3 applications
Am 23.08.2011 10:14, schrieb Jeremy Burns | Class Outfit:
Did you try reading it in beforeFind and setting a local variable that
you can read in afterFind?
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 22 Aug 2011, at 15:25, Thomas Ploch wrote:
Look at Model::findQueryType :-)
Am 22.08.2011 15:56, schrieb Anja Liebermann:
Hello,
is there a possibility to know which query type ( first, all, count
etc...) was used, when I call afterFind()?
Depending on the query Type I would like to make different checks.
If it is not possible, then I have to do it in the controller in
several actions.
As always: Thanks in advance for any hints!
Anja
--
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]
<mailto:[email protected]> For more options, visit
this group at http://groups.google.com/group/cake-php
--
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
--
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