/** * Add repository specific logic to the insert action * * @param mixed $connection The database connection object * @return QubitRepository self-reference */ protected function insert($connection = null) { // When creating a new repository, set the upload_limit to the default // value (app_repository_quota) if (null == $this->__get('uploadLimit')) { $this->__set('uploadLimit', sfConfig::get('app_repository_quota')); } parent::insert($connection); return $this; }