hasMany('Bookmark as Bookmarks', array('local' => 'id', 'foreign' => 'user_id')); } public function setTableDefinition() { $this->hasColumn('name', 'string', 30); } }