I got an application that needs to be transcoded into CakePHP.
I have the following selection with subqueries:
SELECT COUNT(*) AS item1,
(SELECT COUNT(*) FROM portal_members) AS item3,
(SELECT COUNT(*) FROM portal_reviews) AS item3,
(SELECT COUNT(*) FROM portal_downloads) AS item4
FROM portal_articles
WHERE 1 = 1
Does anyone know how to create this query using CakePHP find ($ type, $ params)?
source
share