Do we really need relation setup in db for yii relations?

I am using MySQL and innodb and i can connect tables with relation.

I don’t want to connect them for performance reasons and i want to manage those relations by myself.

Can i manually create relation rules in Yii model files? Do they require real relation connection right inside database?

(So can i use all the features listed in "http://www.yiiframework.com/doc/guide/1.1/en/database.arr" either i have the REAL relation setup or not?)

Hi JackieTackie

You don’t need to create relations in db. You can create all relations in your code manually and they will work just fine.

Thank you!