mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Postgres 9.4 JSONB data type has no default operator class #5170
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MattiasNilsson on GitHub (Jun 30, 2016).
When using the package doctrine/migrations (~1.0) together with doctrine/orm (~2.5) the following migrations fails. The migration itself worked nicely until I recenlty updated, and the last commit which was working were: https://github.com/doctrine/doctrine2/commit/4a38c96ec57e3c860c2e0c85cd98f09e685f398c
This is the backtrace of the error:
So what it fails on is that in the class Doctrine\DBAL\Schema\AbstractAsset and the following if (strpos($name, ".") !== false) which assumed that the $name variable is a string.
The command which fires this are the following:
$table = $schema->getTable('tips_selectiontypes');
$table->addIndex(['data'], 'selectiontypes_data_ix');
Any ideas?
@stof commented on GitHub (Jul 13, 2016):
There is no code of the ORM involved here. You should open an issue on DBAL
@stof commented on GitHub (Jul 13, 2016):
and btw, the code triggering this error is not
$table->addIndex(['data'], 'selectiontypes_data_ix');. The stack traces is talking aboutDoctrine\DBAL\Schema\Table->addForeignKeyConstraint() /vagrant/src/BetterCollective/Migrations/Version20160119144038.php:85