Differences (and errors) upon different notations #661
Replies: 3 comments 2 replies
-
Starting to get the same ugly error using the first notation: Unknown database type bit requested, Doctrine\DBAL\Platforms\MySQL80Platform may not support it. when adding a field 'type' => 'select', withou bit database fields involved. |
Beta Was this translation helpful? Give feedback.
-
Are you sure there is no issue with your database connection? Can you open a tinker session with Cheers |
Beta Was this translation helpful? Give feedback.
-
Hello, We haven’t heard back from you in a while, so we’re closing this issue for now. If you still need assistance, please don’t hesitate to reopen the issue or create a new one. Thank you, and take care! Cheers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Very confused about this, it really seems an internal bug.
This notation works in crud controller:
$this->crud->addField([ 'name' => 'descripcion', 'type' => 'text', ]);
but his alternative notation fails:
CRUD::field('descripcion')->type('text');
The error thrown with the second notation is (very crazy):
Unknown database type bit requested, Doctrine\DBAL\Platforms\MySQL80Platform may not support it.
I don't have any bit field on the table, nor on the whole database. The table has an unsigned bigint as id and a string as "descripcion".
The backpack documentation (v6), on fluent-syntax section, says you must use he CRUD:
use Backpack\CRUD\app\Library\CrudPanel\CrudPanel as CRUD;
but on the generated controllers the use is another one:
use Backpack\CRUD\app\Library\CrudPanel\CrudPanelFacade as CRUD;
maybe the problem is related to this. Did someone experienced this behaviour?
Beta Was this translation helpful? Give feedback.
All reactions