hasMany('Task as TaskAlias', 'Assignment.task_id'); $this->hasMany('ResourceType as Type', 'ResourceReference.type_id'); } public function setTableDefinition() { $this->hasColumn('name', 'string',100); } }