Can I retrieve an aggregate column via the Containable behavior?
Is it possible for CakePHP's Containable behavior to request an aggregate column value during a find()
? For example, in model Item
containing numeric columns quarks
and cogs
:
$this->Item开发者_JS百科->contain('quarks + cogs AS total');
Alright then...
This should work: CakePHP mathematic-calculation field?
:)
精彩评论