/** * Add New Location * * @param array $locationParts Array of Location Parts * @return bool | int */ public function addLocation($locationParts) { $newLocation = new Model_Location(); $newLocation->fromArray($locationParts); try { $newLocation->save(); } catch (Doctrine_Exception $e) { return $e->getMessage(); } return $newLocation->id; }