Пример #1
0
 public function testWithAlias()
 {
     $c = new TestableModelCriteria('bookstore', 'Book');
     $c->join('Book.Author a');
     $c->with('a');
     $withs = $c->getWith();
     $this->assertTrue(array_key_exists('a', $withs), 'with() uses the alias for the index of the internal list of Withs');
 }