示例#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);
 }