Beispiel #1
0
 public function getPersona(Procedure &$pro, int $personaid)
 {
     $p = Persona::persistence();
     $persona = $pro->declare_var('per', new RowType($p));
     $pro->select($p->id, $p->nombre, $p->apellido)->from($p)->where(c($p->id = $personaid))->into($persona);
     return $persona;
 }
Beispiel #2
0
 /**
  * 
  * @param Perro $self
  */
 public function constraint($self)
 {
     self::primarykey($self->id);
     self::foreignkey(g($self->persona_id), $per = Persona::persistence(), g($per->id));
 }