private function handleEntity($entity)
    {
        if (null !== $page = $this->findRelatedPage($entity)) {
            if (null === $page->getId()) {
                return;
            }
            if (!$this->pages->contains($page)) {
                $this->pages->add($page);
            }
        }
    }
private function handleEntity($entity)
    {
        if (null !== $page = $this->findRelatedPage($entity)) {
            if (null === $page->getId()) {
                return;
            }
            if (!$this->pages->contains($page)) {
                $this->pages->add($page);
            }
        }
    }
private function handleEntity ( $ entity ) { if ( null !== $ page = $ this -> findRelatedPage ( $ entity ) ) { if ( null === $ page -> getId ( ) ) { return ; } if ( ! $ this -> pages -> contains ( $ page ) ) { $ this -> pages -> add ( $ page ) ; } } }
Handles the entity.

@param object $entity
Handles the entity .