Designing and Development > Yii PHP Framework Support

relations function in yii frame work

(1/1)

rahul:
I want to create relation in my three tables i am new to yii so i am confused how relations function work in yii.
is this possible to create relations in tables with out altering table with the help of relations function
can some one please give me a little bit clear clarification to understand of this function behavior

phpdeveloper:
If you are generating your modules with gii  you have to set constraints and set table inniDB you can also ignore to make relation ship function with un check  unchek relation field and you can also do it by hand but as per yii
you have constraint set and innoDB table
and for more information check out this link
http://www.yiiframework.com/doc/guide/1.1/en/database.arr

perks:
hello phpdeveloper ,

can you make clear that how relation function work ?

phpdeveloper:
i think you  did'nt read the article witch i provided in link well by the way  function work like this

--- Code: ---'VarName'=>array('RelationType', 'ClassName', 'ForeignKey', ...additional options)
--- End code ---
and for more information you must go to link

Navigation

[0] Message Index

Go to full version