Mar
19
19
Fixing a Models result array, when doing subqueries
Topics: Tutorials, CakePHP // 2 comments, 2,084 views
In some cases, you want to grab extra data in the find() method by calling an SQL statement like COUNT() AS, or SELECT(). When you do this, your extra data is not nested in the Model index of your resulted array. Here's how to fix that problem. Continue reading...