public function toObject($dbObject = null, $skip = array()) { if (is_null($dbObject)) { $dbObject = new DropFolderContentFileHandlerConfig(); } parent::toObject($dbObject, $skip); $dbObject->setHandlerType(DropFolderFileHandlerType::CONTENT); return $dbObject; }
public function toObject($dbObject = null, $skip = array()) { if (is_null($dbObject)) { $dbObject = new DropFolder(); } parent::toObject($dbObject, $skip); if ($this->fileHandlerConfig) { $dbFileHandlerConfig = $this->fileHandlerConfig->toObject(); $dbObject->setFileHandlerConfig($dbFileHandlerConfig); } return $dbObject; }