doctrine-extensions / DoctrineExtensions

Doctrine2 behavioral extensions, Translatable, Sluggable, Tree-NestedSet, Timestampable, Loggable, Sortable
MIT License
4.04k stars 1.27k forks source link

[Tree] Allow uuid as path source in materialized path strategy #2897

Open andreakeesys opened 2 days ago

andreakeesys commented 2 days ago

Fixes the following error in Symfony 7.* during cache warmup, with an entity that implements Tree with the materialized path strategy and uses Uuidv7 as primary key:

In Attribute.php line 260: 

Tree PathSource field - [id] type is not valid. It can be any of the integer 
variants, double, float or string in class - App\Entity\<MyEntity>
codecov[bot] commented 57 minutes ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.66%. Comparing base (22418b1) to head (8df20db). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2897 +/- ## ======================================= Coverage 78.66% 78.66% ======================================= Files 167 167 Lines 8746 8746 ======================================= Hits 6880 6880 Misses 1866 1866 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: