public function getModel($name) {
        if(!isset($this->models[$name])){
            throw new RuntimeException(sprintf("The model document name '%s' is not added in chain model '%s'",$name,$this->id));
        }
        $this->models[$name]->setContainer($this->container);
        return $this->models[$name];
    }
public function getModel($name) {
        if(!isset($this->models[$name])){
            throw new RuntimeException(sprintf("The model document name '%s' is not added in chain model '%s'",$name,$this->id));
        }
        $this->models[$name]->setContainer($this->container);
        return $this->models[$name];
    }
public function getModel ( $ name ) { if ( ! isset ( $ this -> models [ $ name ] ) ) { throw new RuntimeException ( sprintf ( "The model document name '%s' is not added in chain model '%s'" , $ name , $ this -> id ) ) ; } $ this -> models [ $ name ] -> setContainer ( $ this -> container ) ; return $ this -> models [ $ name ] ; }
Retorna el modelo de un documento por su nombre
@param type $name
@return ModelDocument
@throws RuntimeException
Retorna el modelo de un documento por su nombre