private function swapPageComponentPositions(PageComponent $firstComponent, PageComponent $secondComponent)
 {
     $firstComponent->setPosition($firstComponent->getPosition() + $secondComponent->getPosition());
     $secondComponent->setPosition($firstComponent->getPosition() - $secondComponent->getPosition());
     $firstComponent->setPosition($firstComponent->getPosition() - $secondComponent->getPosition());
     $this->pageComponentDao->update($firstComponent);
     $this->pageComponentDao->update($secondComponent);
 }
 public function mapDtoToPageComponent(PageComponentDto $pageComponentDto)
 {
     $pageComponent = new PageComponent();
     $pageComponent->setId($pageComponentDto->getId());
     $pageComponent->setHtmlId($pageComponentDto->getHtmlId());
     $pageComponent->setHtmlClass($pageComponentDto->getHtmlClass());
     $pageComponent->setPosition($pageComponentDto->getPosition());
     $pageComponent->setPageColumnId($pageComponentDto->getPageColumnId());
     return $pageComponent;
 }