Giter Club home page Giter Club logo

Comments (8)

garak avatar garak commented on July 27, 2024

I guess that we can remove collation, or at least make it optional.

from shortid-doctrine.

garak avatar garak commented on July 27, 2024

Do you think related PR can solve?

from shortid-doctrine.

mrblur avatar mrblur commented on July 27, 2024

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.

garak avatar garak commented on July 27, 2024

Fixed and released in v0.6.0

from shortid-doctrine.

c33s avatar c33s commented on July 27, 2024

@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.

garak avatar garak commented on July 27, 2024

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.

c33s avatar c33s commented on July 27, 2024

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.

garak avatar garak commented on July 27, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.