hasProperty("status")){ $this->status = self::STATUS_NEW; } if (!$this->hasProperty("date")){ $this->date = new MongoDate(); } foreach ($requiredProps as $prop){ if (!$this->hasProperty($prop)){ throw new CoreException("Missing parameter '$prop' while calling MailTemplateModel::__construct()"); } } } public static function getCollectionName(){ return "mailTemplate"; } } ?>