-
-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
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
mapping_types
config seems to be ignored on diff
#511
Comments
From my understanding of mapping types, types and comments...
as example:
Thus in your case i would expect something as: mapping_types:
vector: LLPhantVectorType
types:
LLPhantVectorType: LLPhant\Embeddings\VectorStores\Doctrine\VectorType The fact that your implementation of The comment is used to infer a Doctrine type when there are multiple doctrine types mapped on the same SQL type. The classical example is: Consider an SQL type When DBAL encounters a You might have configs defined as follows: mapping_types:
vector: LLPhantVectorType
types:
LLPhantVectorType: LLPhant\Embeddings\VectorStores\Doctrine\VectorType
GoetasVectorType: GoetasVectorType In this case, both
When DBAL finds an SQL |
Using the latest bundle version and Postgres.
I have the following entity
VectorType
:the created migration:
From my understanding, because I added
mapping_types: vector: array
it should look like:$this->addSql('CREATE SEQUENCE snippet_id_seq INCREMENT BY 1 MINVALUE 1 START 1'); $this->addSql('CREATE TABLE snippet (id INT NOT NULL, embedding vector(1536) NOT NULL, PRIMARY KEY(id))'); + $this->addSql('COMMENT ON COLUMN snippet.embedding IS \'(DC2Type:array)\'');
If I manually add this line, all works good, but if I want to generate the diff again I get another migration over and over again:
cc @chr-hertel @goetas
The text was updated successfully, but these errors were encountered: