Exemple #1
0
 /**
  * 
  * @return NTableSelection
  */
 public function getTable()
 {
     // název tabulky odvodit z názvu třídy
     preg_match('#(\\w+)Repository$#', get_class($this), $m);
     $string = $m[1];
     $string[0] = strtolower($string[0]);
     return $this->connection->table($string);
 }
Exemple #2
0
 public function createAuthenticatorService()
 {
     return new Authenticator($this->database->table('users'));
 }