Example #1
0
 public function testInitializeWithString()
 {
     $query = new Query("TestObject");
     $this->assertEquals("TestObject", $query->getClassName());
 }
Example #2
0
 /**
  * Not-match values of specified field from a sub-query
  *
  * @param string    $key
  * @param string    $queryKey Target field key in sub-query
  * @param Query $query    The sub-query
  * @return self
  */
 public function notMatchFieldInQuery($key, $queryKey, $query)
 {
     $this->_addCondition($key, '$dontSelect', array("key" => $queryKey, "query" => array("where" => $query->where, "className" => $query->getClassName())));
     return $this;
 }