예제 #1
0
파일: oneToMany.php 프로젝트: AF83/morm
 public function testGetOneBookWithAuthorAndAliasNamedNameOnRelation()
 {
     $fetch = new Books($this->book->id);
     $fetch->setAlias('name');
     $this->assertEqual('Foo Bar', $fetch->name);
     $this->assertEqual('John Doe', $fetch->authors->name);
 }