Skip to content

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

Draft
wants to merge 1 commit into
base: 4.0.x
Choose a base branch
from
Draft

Conversation

greg0ire
Copy link
Member

@greg0ire greg0ire commented Jul 1, 2025

This is a follow up to #11188

*
* @link www.doctrine-project.org
*/
class SingleSelectExecutor extends AbstractSqlExecutor
Copy link
Member Author

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());
Copy link
Member Author

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();
}
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant