Model::find() Returning Extra Results

Posted on 2010/07/04 by Randall.
Categories: Uncategorized.

This one was tricky…if you pass in array('condition'=>array('id'=>1)), instead of array('conditions'=>array('id'=>1))…the engine will not complain, it will just return a whole lot of extra results from your Model::find() query. Remember to always use ‘conditions’.

no comments yet.

Leave a comment

Names and email addresses are required (email addresses aren't displayed), url's are optional.

Comments may contain the following xhtml tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>