Revision #2 was created by Necip on Jul 26, 2018, 4:59:44 PM.
edited
Tags
Logging,XDebug,sql
Content
[...]
These all is not necessary if you use XDebug and place a breakpoint after the function "getCommandBuilder" in the CActiveRecord.php and take a closer look at the return value in $command.
This database access is created in yii:
<img src="https://ncpup.files.wordpress.com/2018/07/yii-sql11.png?w=474" />
This code is called by the yii framework
<img src="https://ncpup.files.wordpress.com/2018/07/yii-sql21.png?w=474" />
getCommandBuilder returns this data structure with the generated SQL statement:
<img src="https://ncpup.files.wordpress.com/2018/07/yii-sql32.png?w=474" />