public function getId() { if ($this->__isInitialized__ === false) { return (int) $this->_identifier["id"]; } $this->__load(); return parent::getId(); }
public function load() { $this->clear(); $division = new Division('D1'); $level = $this->CI->_level->findOneBySlug('college'); $division->setLevel($level); $league = $this->CI->_league->findOneBySlug('ncaa'); $division->setLeague($league); $division->save(); print_r(sprintf("Created Division: %s (%s)\n", $division->getName(), $division->getId())); }
public function setDivision(Division $v = null) { if ($v === null) { $this->setFkDivisionId(0); } else { $this->setFkDivisionId($v->getId()); } $this->aDivision = $v; if ($v !== null) { $v->addRelDivisionActividadDocente($this); } return $this; }
public static function addInstanceToPool(Division $obj, $key = null) { if (Propel::isInstancePoolingEnabled()) { if ($key === null) { $key = (string) $obj->getId(); } self::$instances[$key] = $obj; } }