public function teardown() { RelationTestPerson::cleanup(); }
public function testSubSelectDifferentClass() { RelationTestPerson::setupTables($this->session->database); RelationTestPerson::insertData($this->session->database); $q = $this->session->createFindQuery('RelationTestPerson'); $subQ = $this->session->createSubQuery($q, 'RelationTestBirthday'); $subQ->select('person'); $q->where($q->expr->in('id', $subQ)); $stmt = $q->prepare(); $this->assertTrue($stmt->execute()); $this->assertEquals(2, count($stmt->fetchAll())); RelationTestPerson::cleanup($this->session->database); }