Exemple #1
0
 public function __construct(MapperFactory $mapperFactory, Connection $reader, Connection $writer = null)
 {
     parent::__construct($mapperFactory, $reader, $writer);
     if (!$this->model instanceof User) {
         throw new ModelException(sprintf('The model %s must be an instance of a class extended from Fluxoft\\Rebar\\Auth\\User', $this->modelClass));
     }
     $this->userModel = $this->model;
 }