Comments (3)
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.
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.
@florentpoujol perfect ! so enjoy it :)
from resource-generator.
Related Issues (20)
- [BUG] show tables on Postgres
- [FR] Allow cutomizing Resources Namespace HOT 4
- [FR] allow custom model path or chose it from a list ! HOT 8
- Search fields when creating resource HOT 4
- [BUG] Models are generated in wrong dir
- [FR] support multiple DB connection HOT 1
- Feature Request - Change default value for Show In fields HOT 2
- Add support for Laravel 5.8 HOT 1
- Problem with indenting HOT 1
- Receiving Undefined method camel_caseI() HOT 1
- No Tables? HOT 2
- Add Laravel 6 support HOT 3
- Call to undefined function str_plural() HOT 1
- Please check all data. You have some mandatory field. HOT 6
- Laravel 8 support HOT 1
- DOes this still work? HOT 1
- Usage of database prefix HOT 2
- Nova 4 HOT 2
- Nova 4 HOT 6
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 resource-generator.