/**
  * @expectedException zibo\library\orm\exception\OrmException
  */
 public function testRegisterModelWithLocalizationDoesntRegisterLocalizedLinkModelWhenBothLinksAreLocalized()
 {
     $field1 = new HasManyField('field1', 'Model2');
     $field1->setIsLocalized(true);
     $model1 = $this->createModel('model1', array($field1));
     $field2 = new BelongsToField('field2', 'Model1');
     $field2->setIsLocalized(true);
     $model2 = $this->createModel('model2', array($field2));
     $this->register->registerModel($model1);
     $this->register->registerModel($model2);
     $localizedModel = $this->register->getModel('model1' . LocalizedModel::MODEL_SUFFIX . 'model2');
 }