コード例 #1
0
 public function test_gh107_has_many_though_include_eager_with_namespace()
 {
     $user = User::find(1, array('include' => array('newsletters')));
     $this->assert_equals(1, $user->id);
     $this->assert_equals(1, $user->newsletters[0]->id);
 }
コード例 #2
0
 public function testGh107HasManyThoughIncludeEagerWithNamespace()
 {
     $user = User::find(1, array('include' => array('newsletters')));
     $this->assertEquals(1, $user->id);
     $this->assertEquals(1, $user->newsletters[0]->id);
 }