public static function addInstanceToPool(Cuenta $obj, $key = null) { if (Propel::isInstancePoolingEnabled()) { if ($key === null) { $key = (string) $obj->getId(); } self::$instances[$key] = $obj; } }
public function setCuenta(Cuenta $v = null) { if ($v === null) { $this->setFkCuentaId(0); } else { $this->setFkCuentaId($v->getId()); } $this->aCuenta = $v; if ($v !== null) { $v->addAlumno($this); } return $this; }