Skip to content

Conversation

@GromNaN
Copy link
Member

@GromNaN GromNaN commented Oct 13, 2025

Q A
Type bug
BC Break no
Fixed issues PHPORM-387

Summary

The binary vector are added by mongodb/mongo-php-driver#1853, available in ext-mongodb 2.2+

@GromNaN GromNaN added Bug Task and removed Bug labels Oct 13, 2025
@GromNaN GromNaN added this to the 2.13.0 milestone Oct 13, 2025
@GromNaN GromNaN requested a review from jmikola October 13, 2025 16:26
public function testQueryVectorAcceptsBinary(): void
{
[$stage] = $this->createVectorSearchStage();
$binaryVector = new Binary("\x01\x02\x03", 9);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was an invalid value for a binary vector.

MongoDB\Driver\Exception\InvalidArgumentException: Binary vector data is invalid

@GromNaN GromNaN merged commit 6a544a7 into doctrine:2.13.x Oct 14, 2025
23 checks passed
@GromNaN GromNaN deleted the PHPORM-387 branch October 14, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants