/** * Insert a new row into a database table * @param array */ public function create($set = array()) { if (!is_array($set)) { $set = array(); } $set['gid'] = (int) $this->Input->get('gid'); parent::create($set); }