public function __sleep() { return array_merge(parent::__sleep(), array('foreignKey', 'typeColumn')); }