/** * Overloads the default load to update location details after load * * @author Jonathan Davis * @since 1.2 * * @param integer $id The ID to lookup the record by * @param string $key The column to use for matching the ID against * @return boolean True if successfully loaded, false otherwise **/ public function load($id = false, $key = 'id') { if ('customer' == $key) { $loaded = parent::load(array('customer' => $id, 'type' => $this->type)); } else { $loaded = parent::load($id, $key); } $this->locate(); return $loaded; }