/**
  * @expectedException zibo\library\orm\exception\ModelException
  */
 public function testOrderFieldsThrowsExceptionWhenAnUnexistantFieldIsReferenced()
 {
     $table = new ModelTable('table');
     $table->addField(new PropertyField('name1', 'type'));
     $table->addField(new PropertyField('name2', 'type'));
     $table->addField(new PropertyField('name3', 'type'));
     $table->orderFields(array('name4', 'name3'));
 }