hasColumn('name', 'string', null); $this->hasColumn('foreignkey', 'integer'); $this->hasOne('ForeignKeyTest', 'ForeignKeyTest2.foreignkey'); } }