/** * Initialize object specification * * @return CMbObjectSpec the spec */ function getSpec() { $spec = parent::getSpec(); $spec->messages = array(); return $spec; }
/** * @see parent::getSpec */ function getSpec() { $spec = parent::getSpec(); $spec->uniques["user"] = array("user_id"); return $spec; }