开发者

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?

:)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜