propelorm/Propel2

View on GitHub
templates/Behavior/AggregateColumn/objectUpdate.php

Summary

Maintainability
A
0 mins
Test Coverage

/**
 * 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);
}