-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Remove sql executor #12052
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
base: 4.0.x
Are you sure you want to change the base?
Remove sql executor #12052
Conversation
* | ||
* @link www.doctrine-project.org | ||
*/ | ||
class SingleSelectExecutor extends AbstractSqlExecutor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mpdude should this class be deprecated on 3.6.x?
@@ -77,8 +76,6 @@ public function testUnserializeSingleSelectResult(string $serialized): void | |||
$this->assertInstanceOf(ParserResult::class, $unserialized); | |||
$this->assertInstanceOf(ResultSetMapping::class, $unserialized->getResultSetMapping()); | |||
$this->assertEquals(['name' => [0]], $unserialized->getParameterMappings()); | |||
$this->assertInstanceOf(SingleSelectExecutor::class, $unserialized->getSqlExecutor()); | |||
$this->assertIsString($unserialized->getSqlExecutor()->getSqlStatements()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what these assertions should be replaced with. If there is something, maybe that something should be used on 3.x already.
$query->setQueryCache($cache); | ||
|
||
$query->getResult(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think maybe this should be rewritten on 3.x to avoid calling setSqlExecutor
.
This is a follow up to #11188