1

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');
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218

1 Answers1

1

Alright then...

This should work: CakePHP mathematic-calculation field?

:)

Community
  • 1
  • 1
deceze
  • 510,633
  • 85
  • 743
  • 889