public function toObject($dbObject = null, $propertiesToSkip = array()) { if (is_null($dbObject)) { $dbObject = new PushNotificationTemplate(); } return parent::toObject($dbObject, $propertiesToSkip); }