public static function addInstanceToPool(RolResponsable $obj, $key = null) { if (Propel::isInstancePoolingEnabled()) { if ($key === null) { $key = (string) $obj->getId(); } self::$instances[$key] = $obj; } }
public function setRolResponsable(RolResponsable $v = null) { if ($v === null) { $this->setFkRolresponsableId(1); } else { $this->setFkRolresponsableId($v->getId()); } $this->aRolResponsable = $v; if ($v !== null) { $v->addResponsable($this); } return $this; }