/**
  * Constructor.
  *
  * @param Pdo             $conn
  * @param string          $table
  * @param string          $class
  * @param ParserInterface $parser
  * @param string          $quote
  * @param string|null     $alias
  */
 public function __construct(Pdo &$conn, $table, $class, $parser, $quote, $alias = null)
 {
     if (null === $alias) {
         $alias = lcfirst($table);
     }
     $this->conn = $conn;
     $this->table = $table;
     $this->class = $class;
     $this->parser = $parser;
     $this->parser->setQuote($quote);
     $this->quote = $quote;
     $this->alias = $alias;
     $this->relations = $class::{'relations'}();
 }
 /**
  * {@inheritdoc}
  */
 public function notExists($field, $value)
 {
     return $this->parser->comparison($field, 'NOT EXISTS', $this->parser->normalizeGroupValue($value));
 }