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->contain('quarks + cogs AS total');
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->contain('quarks + cogs AS total');