Skip to content

kosmala007/gedmo-tree-recalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recalc Gedmo Tree Command (Doctrine Behavioral Extensions)

This command was created for Gedmo Doctrine Behavioral Tree Extension.

If your tree has been damaged, the leaves and roots have incorrect values - this command is all you need.

You can easily recalc all the properties of a tree by one command.

How it use?

  1. Install package composer require devpack/gedmo-tree-recalc or copy only command 😉
  2. Add bundle to your bundles.php file

Example:

<?php

return [
    // ...
    DevPack\GedmoTreeRecalc\GedmoTreeRecalcBundle::class => ['all' => true],
];
  1. Run your symfony console

Example:

php bin/console gedmo:tree:recalc [<YourEntity>]

How test package?

Run this command: ./vendor/bin/phpunit tests

If I helped you, leave me a star ⭐