private function createCity()
 {
     $city = new City(4330);
     if (!$city->getId()) {
         $city->setZip(4330);
         $city->setCity("Aalgaard");
         $city->commit();
     }
 }
 /**
  * @test
  */
 public function shouldGetValueFromJoinsOnNewObjects()
 {
     $person = new Person();
     $person->setZip('7001');
     $city = new City();
     $city->setZip('7001');
     $city->setCity('Somewhere');
     $city->commit();
     // then
     $this->assertEquals('Somewhere', $person->getCity());
 }