[ 'type' => Schema::DT_INT, 'index' => true, ], 'wormholeId' => [ 'type' => Schema::DT_INT, 'index' => true, 'belongs-to-one' => 'Model\WormholeModel', 'constraint' => [ [ 'table' => 'wormhole', 'on-delete' => 'CASCADE' ] ] ], ]; /** * get wormhole data as object * @return object */ public function getData(){ $systemWormholeData = $this->wormholeId->getData(); return $systemWormholeData; } }