What are the pros and cons of using find() versus SQL queries?

2014-03-27 Thread Sam
What are the pros and cons of using find() versus SQL queries? If one is 
already familiar with SQL, is it advisable to use them throughout in 
cakephp?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: What are the pros and cons of using find() versus SQL queries?

2014-03-27 Thread euromark
You should always use the wrappers and never manually query() if possible.
The latter forces you to a specific Database Language, whereas using the 
wrappers keeps you flexible and lets the ORM handle all the necessary stuff 
including
securing your data.


Am Donnerstag, 27. März 2014 11:21:00 UTC+1 schrieb Sam:

 What are the pros and cons of using find() versus SQL queries? If one is 
 already familiar with SQL, is it advisable to use them throughout in 
 cakephp?


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.