File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
src/Translatable/Mapping/Event/Adapter Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ a release.
2525### Fixed
2626- Removed legacy checks targeting older versions of PHP (#2201 )
2727- Added missing XSD definitions (#2244 )
28+ - Replaced undefined constants from ` Doctrine\DBAL\Types\Type ` at ` Gedmo\Translatable\Mapping\Event\Adapter\ORM::foreignKey() ` (#2250 )
2829- Add conflict against "doctrine/orm" >=2.10 in order to guarantee the schema extension (see https://github.com/doctrine/orm/pull/8852 ) (#2255 )
2930
3031## [ 3.1.0] - 2021-06-22
Original file line number Diff line number Diff line change 4747 "require-dev" : {
4848 "alcaeus/mongo-php-adapter" : " ^1.1" ,
4949 "doctrine/cache" : " ^1.11 || ^2.0" ,
50+ "doctrine/dbal" : " ^2.13" ,
5051 "doctrine/doctrine-bundle" : " ^2.3" ,
5152 "doctrine/mongodb-odm" : " ^2.0" ,
5253 "doctrine/orm" : " ^2.6.3" ,
Original file line number Diff line number Diff line change 44
55use Doctrine \Common \Proxy \Proxy ;
66use Doctrine \DBAL \Types \Type ;
7+ use Doctrine \DBAL \Types \Types ;
78use Doctrine \ORM \Mapping \ClassMetadataInfo ;
89use Gedmo \Mapping \Event \Adapter \ORM as BaseAdapterORM ;
910use Gedmo \Tool \Wrapper \AbstractWrapper ;
@@ -111,9 +112,9 @@ private function foreignKey($key, $className)
111112 $ meta = $ em ->getClassMetadata ($ className );
112113 $ type = Type::getType ($ meta ->getTypeOfField ('foreignKey ' ));
113114 switch ($ type ->getName ()) {
114- case Type ::BIGINT :
115- case Type ::INTEGER :
116- case Type ::SMALLINT :
115+ case Types ::BIGINT :
116+ case Types ::INTEGER :
117+ case Types ::SMALLINT :
117118 return intval ($ key );
118119 default :
119120 return (string ) $ key ;
You can’t perform that action at this time.
0 commit comments