Code Monkey home page Code Monkey logo

Comments (3)

cloudstudio avatar cloudstudio commented on July 3, 2024

Hello @florentpoujol I think doctrine is not working with MariaDB, we only test it with mysql.

I think working only with mysql, i try to check soon :)

from resource-generator.

florentpoujol avatar florentpoujol commented on July 3, 2024

Hey ! Thanks for your anwser

But I apologize, I haven't properly investigated before opening the ticket.

The tool actually works for most tables, even with MariaDB.

It does not however when the table contain an enum type, because Doctrine thinks that MariaDB does'nt support it and throws the following exception from ResourceGeneratorService::getColumnType().
(MariaDB 10.3.7 definitely supports enums)

Unknown database type enum requested, Doctrine\DBAL\Platforms\MariaDb1027Platform may not support it. at /myapp/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php:479)

Putting a quick try/catch in this method and returning 'enum' when catching DBALExceptions seems to work, I can access the table with all the fields but all the fields types are either 'text' or 'relation' (no 'integer' or 'datetime' even when the fields were recognized of that type)...

I already outgrown the need for the generator, so I won't bother doing more.
I will just close the issue and update the title/first post.

Tanks for your time.

from resource-generator.

cloudstudio avatar cloudstudio commented on July 3, 2024

@florentpoujol perfect ! so enjoy it :)

from resource-generator.

Related Issues (20)

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.