Tuesday, November 1, 2011

Re: spit out the sql code just for one line?

On Nov 1, 4:19 am, Ryan Schmidt <google-2...@ryandesign.com> wrote:
> On Oct 31, 2011, at 03:16, AD7six wrote:
>
> > On Oct 31, 6:04 am, iphone5 <sk.koiz...@gmail.com> wrote:
> >> $this -> Question-> deleteAll( array( 'survey_question_id' =>
> >> $question[ 'SurveyQuestion'][ 'id' ] ) );
> >> Is there any way to show the sql code for this line?
> >> I know if I turn on the debug = 2 it will show all the sql code for
> >> the whole page but I just want to do it for a single line of code.
>
> > You put half the answer in the question.
>
> Since you seem to know it, what is the entire answer? Are you suggesting he should set debug=2 and just ignore all the other lines in the output that he's not interested in, or is there a more direct answer to his question hidden in your reply?

You're right Ryan, and infact just manipulating debug won't work.

however: iphone5, why do you want the sql for one function?

AD

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: