adrenalinkin / doctrine-naming-strategy Goto Github PK
View Code? Open in Web Editor NEWDoctrine Camel Case naming strategy
License: MIT License
Doctrine Camel Case naming strategy
License: MIT License
Currently we have
CREATE TABLE UserReadComments (
UserId VARCHAR(255) NOT NULL,
CommentId VARCHAR(255) NOT NULL,
PRIMARY KEY(UserId, CommentId)
);
Should be UserId -> userId
CREATE TABLE UserReadComments (
userId VARCHAR(255) NOT NULL,
commentId VARCHAR(255) NOT NULL,
PRIMARY KEY(userId, commentId)
);
Add back compatibility and deprecate old format. Remove in 2.0.0
Doctrine/orm 3 released on february 3 (https://github.com/doctrine/orm/releases/tag/3.0.0). Is it possible to update the constraint in composer.json to allow for this new version?
Problem
Symfony profiler shows the following deprecation message:
Method "Doctrine\ORM\Mapping\NamingStrategy::joinKeyColumnName()" might add "string" as a native return type declaration in the future.
Do the same in implementation "Linkin\Component\DoctrineNamingStrategy\ORM\Mapping\CamelCaseNamingStrategy" now to avoid errors or add an explicit @return annotation to suppress this message.
Solution
Add string
return type.
Versions
Symfony: 6.1.x
adrenalinkin/doctrine-naming-strategy: v1.1.0
Use this image in the documentation - https://user-images.githubusercontent.com/4967813/183507072-c05d17ae-4742-4602-958d-fc8676b6e9d6.png
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.