标签: php postgresql cakephp
CakePHP的Containable行为是否有可能在find()期间请求聚合列值?例如,在包含数字列Item和quarks的模型cogs中:
find()
Item
quarks
cogs
$this->Item->contain('quarks + cogs AS total');
答案 0 :(得分:1)
好吧那么......
此应工作:CakePHP mathematic-calculation field?
:)