How can you access the select query of a collection?

How can you access the select query of a collection?
A. You can only access the select query after the collection has been loaded by calling the public method query()
B. It is stored in a protected variable $query and can only be accessed from the inside of a collection class
C. You can get it by using public method getSelect() which returns an instance of MagentoFrameworkDBSelect
D. The select query is not available in the collection class, it will be generated by the MySQL adapter right before executing a query

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “How can you access the select query of a collection?

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.