public function setUp() { parent::setUp(); $this->hasOne('BlogAuthor as Author', array('local' => 'blog_author_id', 'foreign' => 'id')); }