The latter is preferred, i.e. the way using the select() and where()
methods. The reason is that the is a lot more flexibility in what you can
do with the new way.
A quick way to check if there if there is data in a query is:
if ($query->all()->count() > 0)
On Friday, May 1, 2015 at 10:54:43 P
Hi
I am making the move from cake 2.x to 3.x
I am starting a new project so figured this a good time. I have been
reading the book alot and its starting to make more sense.
I have been playing with different ways of retrieving my data and am a
little confused as to the best practice method fo