How Relations Funcions Work

Hi ,

all i want to create relation in my two table i saw relations functions in my model class but i confused that how to use this function or is this possible with out altering table via mysql . sorry for bad english

If you are generating your models, you’ll need the constraints set and InnoDB tables.

You can also do it by hand, but I strongly recommend you have the constraints set and the InnoDB tables anyway.

For guidance on the topic, please read the guide on Relational Active Record.

See the Configuring CWebLogRoute for DB profiling wiki and also look at the comment => enableParamLogging => true

Upps :blink: wrong topic

@Mods please move to How to echo query in yii framework

kokomo, don’t worry, that happens :)

Thanks Rodrigo Coelho ,

I got the idea what to do next