/** * Parse the clauses, and add them to the query builder * * @param array $clauses * @return AbstractQuery * @throws QueryException If the results have already been materialized */ public function where(array $clauses) { $this->assertCanBeModified(); $this->queryBuilder->andWhere($this->clauseParser->parse($clauses)); return $this; }
/** * @expectedException MistyDoctrine\Exception\QueryException */ public function testMissingClause() { $parser = new ClauseParser(); $parser->parse(array('missing-clause' => 1)); }