55 Commits

Author SHA1 Message Date
Tomas Votruba
683f33a526 [Doctrine] Add AlwaysInitializeUuidInEntityRector 2019-09-18 09:23:18 +02:00
Tomas Votruba
ca7d0cba15 use PHP highlight for herenow doc 2019-09-18 09:14:06 +02:00
Tomas Votruba
4480ce1195 make extensible 2019-09-17 21:01:43 +02:00
Tomas Votruba
8b591fab52 fixes 2019-09-11 19:41:09 +02:00
Tomas Votruba
622b6c1460 migrate TypeInferers to PHPStan object types 2019-09-10 20:40:43 +02:00
Tomas Votruba
5a2f2b0900 fix spacing with SpacelessPhpDocTagNode 2019-09-10 20:35:03 +02:00
Tomas Votruba
c61c01bfdf add skip of one to one relations with mapped by 2019-09-10 15:36:17 +02:00
Tomas Votruba
62655ea194 add relation property only when target entity has uuid 2019-09-10 15:23:23 +02:00
Tomas Votruba
58f41a1eda separate uuid migration to 2 files 2019-09-10 15:14:36 +02:00
Tomas Votruba
2f5255ef20 cleanup 2019-09-10 15:14:36 +02:00
Tomas Votruba
6081373d39 [Doctrine] split id and relation migration to 2 steps 2019-09-10 11:49:01 +02:00
Tomas Votruba
82efb89940 use object types over strings 2019-09-06 12:29:55 +02:00
Tomas Votruba
79ffad4a0b add @see annotations 2019-09-03 14:05:21 +02:00
Tomas Votruba
d4cd92fa73 add getTraitUses() 2019-09-01 21:47:16 +02:00
Tomas Votruba
2e97a3d315 make use of getProperties() 2019-09-01 21:45:26 +02:00
Tomas Votruba
72bb8d6ec0 remove getDoctrine*() methods from PhpDocInfo, use getByType() instead 2019-08-31 13:46:48 +02:00
Tomas Votruba
160c9a6413 report old and new table 2019-08-31 12:49:10 +02:00
Tomas Votruba
a618c07a50 decouple EntityWithMissingUuidProvider class 2019-08-31 12:47:41 +02:00
Tomas Votruba
e466a14616 add removeNodeFromStatements() method to remove statement by key easily 2019-08-31 10:44:41 +02:00
Tomas Votruba
04d01ffdfe add Symfony Validator annotations 2019-08-30 23:08:03 +02:00
Tomas Votruba
3883bbb001 RemoveUnusedPrivatePropertyRector should skip entities [closes #1922] 2019-08-29 21:31:01 +02:00
Tomas Votruba
bf312a3dd0 create table name based on @Table annotation 2019-08-29 17:26:35 +02:00
Tomas Votruba
bc9f3759cd improve new entity props collecting 2019-08-29 17:25:37 +02:00
Tomas Votruba
0223736948 make id name property detection independent on the property name 2019-08-29 15:27:24 +02:00
Tomas Votruba
fc99b78e52 Rename EntitiesWithAddedUuidPropertyCollector to more generic EntitiesWithAddedUuidPropertyCollector 2019-08-29 15:08:27 +02:00
Tomas Votruba
3a39e28cf5 Add uuid only to entities with id 2019-08-29 14:53:30 +02:00
Tomas Votruba
8047b4c10d add parent construct call to uuid init 2019-08-28 21:06:06 +02:00
Tomas Votruba
80912105ec allow non-uuid props 2019-08-28 17:20:21 +02:00
Tomas Votruba
d315291883 decopule UuidTableNameResolver and DoctrineDocBlockResolver 2019-08-28 12:24:12 +02:00
Tomas Votruba
51021de0a6 skip relation mirroring if target entity does not have uuid property 2019-08-28 12:02:33 +02:00
Tomas Votruba
b9193d22e1 decouple PhpDocTagNodeFactory 2019-08-28 11:33:07 +02:00
Tomas Votruba
7b79435275 rename AliasToClassRector to EntityAliasToClassConstantReferenceRector 2019-08-28 11:23:41 +02:00
Tomas Votruba
c1303c6ba7 init uuid migration 2019-08-28 10:52:55 +02:00
Tomas Votruba
697655d090 decopule class references to DoctrineClass value object 2019-08-27 18:11:28 +02:00
Tomas Votruba
bd48d5792d [Doctrine] Add registry to EM 2019-07-02 13:43:26 +02:00
Tomas Votruba
71f1af830c [tests] Refactor tests to use container just once, if not enforced config 2019-04-29 00:36:52 +02:00
Tomas Votruba
4665ce8944 fix tests 2019-02-06 11:56:16 +01:00
Tomas Votruba
b8268f3897 remove safe 2019-02-02 13:27:03 +01:00
Tomas Votruba
cfe7ecc2ff standardize /config directory location to root 2019-01-12 02:04:45 +01:00
Tomas Votruba
d71d6a1f12 make use of NodeFactoryTrait 2018-11-03 21:53:08 +01:00
Tomas Votruba
218366f762 [cs] apply private method order 2018-10-31 16:35:15 +01:00
Tomas Votruba
4cee626ee4 Remove MethodArgumentAnalyzer 2018-10-21 15:38:21 +02:00
Tomas Votruba
ba0c3eea95 apply this Rector to code 2018-10-15 21:49:45 +08:00
Tomas Votruba
5deb94f9ff unite refactor(node) naming to node, to make clear the main argument name 2018-10-15 14:45:34 +08:00
Tomas Votruba
d4009b3888 Add NameAnalyzerTrait 2018-10-15 14:36:25 +08:00
Tomas Votruba
f07480c773 apply thecodingmachine/safe 2018-09-21 07:50:14 +02:00
Tomas Votruba
e6f66a726b revert removed Autowire-Public-Default compiler passes, they were messy 2018-08-21 00:28:20 +02:00
Tomas Votruba
b9c9005d78 manual update 2018-08-15 11:11:15 +02:00
Tomas Votruba
ff4315b0d3 Apply MergeIsCandidateRector on Rectro code 2018-08-15 11:11:15 +02:00
Tomas Votruba
5571f83bf3 merge BetterPhpDocParser to NodeTypeResolver, add config.yml for each package and load it by default 2018-08-13 21:59:28 +02:00