Exemple #1
0
 public static function addInstanceToPool(Anio $obj, $key = null)
 {
     if (Propel::isInstancePoolingEnabled()) {
         if ($key === null) {
             $key = (string) $obj->getId();
         }
         self::$instances[$key] = $obj;
     }
 }
Exemple #2
0
 public function setAnio(Anio $v = null)
 {
     if ($v === null) {
         $this->setFkAnioId(0);
     } else {
         $this->setFkAnioId($v->getId());
     }
     $this->aAnio = $v;
     if ($v !== null) {
         $v->addDivision($this);
     }
     return $this;
 }