/**
  * @param Url $url
  * @return UrlDataObject
  */
 public function mapToDataObject(Url $url)
 {
     $urlDataObject = new UrlDataObject();
     $urlDataObject->id = $url->getId();
     $urlDataObject->userId = $url->getUserId();
     $urlDataObject->url = $url->getUrl();
     $urlDataObject->title = $url->getTitle();
     $urlDataObject->description = $url->getDescription();
     $urlDataObject->created = $url->getCreated()->format('c');
     $urlDataObject->updated = $url->getUpdated()->format('c');
     return $urlDataObject;
 }