We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More a question. I want to add a index on a specific JSON query I know its possible via PostgreSQL the query looks like this:
$queryBuilder->leftJoin( Contact::class, 'contact', Join::WITH, 'CAST(JSON_GET(JSON_GET(visit.data, \'code\'), \'contactId\') AS INT) = contact.id', )
It is a third party entity and I wanted to use Events::loadClassMetadata to add a index but the following:
Events::loadClassMetadata
$builder = new ClassMetadataBuilder($metadata); $builder->addIndex(['CAST(JSON_GET(JSON_GET(visit.data, \'code\'), \'contactId\') AS INT)'], 'data_code_contactId_idx');
because it is not a column maybe somebody achieved something like this, without that the ORM is throwing the index away on the next migration.
column
The text was updated successfully, but these errors were encountered:
No branches or pull requests
More a question. I want to add a index on a specific JSON query I know its possible via PostgreSQL the query looks like this:
It is a third party entity and I wanted to use
Events::loadClassMetadata
to add a index but the following:because it is not a
column
maybe somebody achieved something like this, without that the ORM is throwing the index away on the next migration.The text was updated successfully, but these errors were encountered: