Replies: 5 comments
-
Yeah, somehow I totally missed the part where you have a "CURRENT SOLUTION" listed out... in big capital letters... oops. |
Beta Was this translation helpful? Give feedback.
-
@michael - Yup, that was actually noted in the original post (under "CURRENT SOLUTION"). But it would be awesome if |
Beta Was this translation helpful? Give feedback.
-
@lindsey — You can do this debugging via the |
Beta Was this translation helpful? Give feedback.
-
Yes, what Marion says, and a good idea all around -- makes much more transparency, for both old hands and those entering the Craft world... |
Beta Was this translation helpful? Give feedback.
-
Also probably need $criteria->getParams() to get the values it will bind |
Beta Was this translation helpful? Give feedback.
-
This is a very niche FR, but it would be extremely useful for complex plugin development.
PROBLEM:
How do you see what kind of SQL query your ECM is going to generate?
CURRENT SOLUTION:
PROPOSED SOLUTION:
("getText" is a mediocre term for that... it could be "debug", or "queryString", or whatever.)
When developing a plugin, anything that makes debugging easier is appreciated. It seems like it would be an easy win for the ECM to internalize a method for outputting the query string directly.
Beta Was this translation helpful? Give feedback.
All reactions