Comments (8)
I guess that we can remove collation, or at least make it optional.
from shortid-doctrine.
Do you think related PR can solve?
from shortid-doctrine.
It solves for mine environment, to be 100% sure, one should verify also with MySQL.
On postgres it generates valid code and respects collation setting.
👍
from shortid-doctrine.
Fixed and released in v0.6.0
from shortid-doctrine.
@garak please reopen. why the forced collation at all? isn't this a simple string value to store? please make it configurable or extend your type from string type. is there a special reason for using utf8_bin
? this breaks the usage for shortids on sqlite.
from shortid-doctrine.
Sqlite should be unaffected, since last change restricted utf8_bin to mysql.
I can't recall the reason for such choice, I guess it was performance-related.
from shortid-doctrine.
oh, after again having a look at the code, i see you are right (i have overlooked the !
). my problem was that shortid-bundle installed 0.5.0 and is not "compatible" with 0.6.0 but i simply dropped the bundle and the doctrine type and made my own doctrine type.
but still i think the code is risky and can have unexpected behaviors. as you still hardcode the value for mysql which overrides the annotation. even if it has performance reasons, shouldn't it be configurable and be up to the user if enabled or not? default can of course be on.
from shortid-doctrine.
I agree that a configurable option is better than an hard coded one. Feel free to open a PR
from shortid-doctrine.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shortid-doctrine.