Пример #1
0
 public function setEstadosalumnos(Estadosalumnos $v = null)
 {
     if ($v === null) {
         $this->setFkEstadoalumnoId(1);
     } else {
         $this->setFkEstadoalumnoId($v->getId());
     }
     $this->aEstadosalumnos = $v;
     if ($v !== null) {
         $v->addAlumno($this);
     }
     return $this;
 }
Пример #2
0
 public static function addInstanceToPool(Estadosalumnos $obj, $key = null)
 {
     if (Propel::isInstancePoolingEnabled()) {
         if ($key === null) {
             $key = (string) $obj->getId();
         }
         self::$instances[$key] = $obj;
     }
 }