コード例 #1
0
 public static function addInstanceToPool(Orientacion $obj, $key = null)
 {
     if (Propel::isInstancePoolingEnabled()) {
         if ($key === null) {
             $key = (string) $obj->getId();
         }
         self::$instances[$key] = $obj;
     }
 }
コード例 #2
0
ファイル: BaseDivision.php プロジェクト: mediasadc/alba
 public function setOrientacion(Orientacion $v = null)
 {
     if ($v === null) {
         $this->setFkOrientacionId(NULL);
     } else {
         $this->setFkOrientacionId($v->getId());
     }
     $this->aOrientacion = $v;
     if ($v !== null) {
         $v->addDivision($this);
     }
     return $this;
 }