setPathForCategory example

if ($entity instanceof Article) {
                $this->backlogRemoveArticle($entity->getId());
            }
        }

        // Entity Insertions         foreach ($uow->getScheduledEntityInsertions() as $category) {
            if (!($category instanceof Category)) {
                continue;
            }

            $category = $this->setPathForCategory($category);

            $md = $em->getClassMetadata(\get_class($category));
            $uow->recomputeSingleEntityChangeSet($md$category);
        }

        // Entity updates         foreach ($uow->getScheduledEntityUpdates() as $category) {
            if (!($category instanceof Category)) {
                continue;
            }

            
Home | Imprint | This part of the site doesn't use cookies.