/**
  * Updates an existing customer record in the legacy customer table.
  *
  * @param Model_Core_Customer $customer
  * An up-to-date Customer object that will be used to update the corresponding
  * record in the data store.
  *
  * @return void
  */
 public function updateCustomer($customer)
 {
     //Retrieve the data from the Customer object and format where necessary
     //ready for insertion into the data storage.
     $legacyIdentifier = $customer->getIdentifier(Model_Core_Customer::LEGACY_IDENTIFIER);
     $address1 = $customer->getAddressLine(Model_Core_Customer::ADDRESSLINE1);
     $address2 = $customer->getAddressLine(Model_Core_Customer::ADDRESSLINE2);
     $address3 = $customer->getAddressLine(Model_Core_Customer::ADDRESSLINE3);
     $telephone1 = $customer->getTelephone(Model_Core_Customer::TELEPHONE1);
     $telephone2 = $customer->getTelephone(Model_Core_Customer::TELEPHONE2);
     if ($customer->getIsForeignAddress()) {
         $isForeignAddress = 'yes';
     } else {
         $isForeignAddress = 'no';
     }
     $data = array('password' => $customer->getPassword(), 'title' => $customer->getTitle(), 'firstname' => $customer->getFirstName(), 'lastname' => $customer->getLastName(), 'landname' => $customer->getLandlordName(), 'personaladdress1' => $address1, 'personaladdress3' => $address2, 'personaladdress5' => $address3, 'personalpostcode' => $customer->getPostcode(), 'country' => $customer->getCountry(), 'isForeignAddress' => $isForeignAddress, 'phone1' => $telephone1, 'phone2' => $telephone2, 'fax' => $customer->getFax(), 'email' => $customer->getEmailAddress(), 'occupation' => $customer->getOccupation(), 'date_of_birth_at' => $customer->getDateOfBirthAt());
     $where = $this->quoteInto('refno = ?', $legacyIdentifier);
     $this->update($data, $where);
 }