GithubHelp home page GithubHelp logo

intaro / custom-index-bundle Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 15.0 41 KB

The bundle allows to describe and create non-standard database indexes for entities

License: MIT License

PHP 100.00%
bundle php symfony symfony-bundle

custom-index-bundle's People

Contributors

1on avatar blackbjorn avatar efacenda avatar ivanlutokhin avatar kiler129 avatar moriony avatar muxx avatar teohhanhui avatar tuqqu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

custom-index-bundle's Issues

Symfony 5 support

Similarly to #7 I think the bundle can easily support v5. Path in progress.

Index name conflict

When working with entities that have same class names and same index names defined, the indexes arent created for all the entities. It looks like there is some internal map by name or by Entity+name.

Example. Lets say you are working with a modular monolith application, and You have 2 Entites named Address in different modules. They have separate table names with module prefix, like module1_address and module_2_address. Both Address entities have street property. If we want to create index on street property in both tables using same annotaion like:

@Index(
 *      name="street_idx",
 *      columns={"street"}
 *  ),
 */

there will be index for only one entity created. I don't know if this is a bug, missing feature or some db limitation, but I thought it is worth mentioning.

Thanks for the good work!

Working with `make:migration`

Hey,
your repos looks great but it doesn't seems to work with Symfony migration bundle.
Have you any idea how to make it works ?
Regards, Yoann

Issue with updating schema

Hello,

first I want to thank you for the good job, this was exactly what I was looking for but...

How are you handling the case that standard doctrine:schema:update will detect the created index as non-schema-compliant and will dispatch an action to remove this index ?

Best regards

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.