Created
July 4, 2018 09:56
-
-
Save 6ui11em/0fe10da6a78266aed260e2f5e8da8cf9 to your computer and use it in GitHub Desktop.
Magento 2 print collection SQL #magento2 #sql #debug
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
$collection->load(); | |
// the following statements are equivalent | |
$collection->getSelect()->assemble(); | |
$collection->getSelect()->__toString(); | |
echo $collection->getSelect(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment