propelorm/Propel2

View on GitHub
src/Propel/Generator/Behavior/AggregateColumn/templates/objectUpdate.php
A

No issues here. Congrats!


/**
 * Updates the aggregate column <?=$column->getName()?>
 *
 * @param ConnectionInterface $con A connection object
 */
public function update<?=$column->getPhpName()?>(ConnectionInterface $con)
{
    $this->set<?=$column->getPhpName()?>($this->compute<?=$column->getPhpName()?>($con));
    $this->save($con);
}

Size

Lines of code
5