/** * * @param Persona $self */ public function constraint($self) { self::primarykey($self->id); parent::many_to_many(new Casa()); }