开发者

Can I retrieve an aggregate column via the Containable behavior?

开发者 https://www.devze.com 2022-12-08 18:28 出处:网络
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:

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?

:)

0

精彩评论

暂无评论...
验证码 换一张
取 消