Php – retrieve an aggregate column via the Containable behavior

cakephpPHPpostgresql

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');

Best Answer

Alright then...

This should work: CakePHP mathematic-calculation field?

:)

Related Topic