/**
  * Handle the command.
  */
 public function handle(LinkRepositoryInterface $links)
 {
     /* @var LinkInterface $link */
     foreach ($this->link->getChildren() as $link) {
         $links->save($link->setParentId(null));
     }
 }
 /**
  * Return the related children.
  *
  * @return LinkCollection
  */
 public function children()
 {
     return (new Decorator())->decorate($this->object->getChildren());
 }