Created
January 30, 2020 10:00
-
-
Save gdarquie/5128cf21ee88b46e7920c5dd379ab1f3 to your computer and use it in GitHub Desktop.
Example of raw SQL Doctrine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sql = 'SELECT * FROM fragment LIMIT 10'; | |
$stmt = $this->getEntityManager()->getConnection()->prepare($sql); | |
$stmt->execute(); | |
return $stmt->fetchAll(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment