/** * Gets the level if set, otherwise calculates this and returns it * * @param PropelPDO Connection to use. * @return int */ public function getLevel(PropelPDO $con = null) { if (null === $this->level) { $this->level = sfAssetFolderPeer::getLevel($this, $con); } return $this->level; }