コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
 /**
  * @expectedException MistyDoctrine\Exception\QueryException
  */
 public function testMissingClause()
 {
     $parser = new ClauseParser();
     $parser->parse(array('missing-clause' => 1));
 }