/**
  * @return Models\Editor
  */
 protected function createEditor()
 {
     $editor = new Models\Editor(['name' => 'Editor 1']);
     $editor->save();
     $contact = new Models\Contact(['phone' => 123]);
     $editor->contact()->save($contact);
     $book = new Models\Book(['name' => 'Book 2']);
     $book->save();
     $editor->books()->save($book);
     return $editor;
 }