Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Community
Search
Login
Register
Webmaster's Community
»
Designing and Development
»
Open Source
»
Yii PHP Framework Support
»
relations function in yii frame work
« previous
next »
Print
Pages: [
1
]
Author
Topic: relations function in yii frame work (Read 25569 times)
rahul
Newbie
Posts: 16
relations function in yii frame work
«
on:
October 09, 2012, 12:01:48 PM »
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
Logged
{advert.}
phpdeveloper
Newbie
Posts: 39
Re: relations function in yii frame work
«
Reply #1 on:
October 12, 2012, 12:33:31 PM »
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
Logged
perks
Newbie
Posts: 11
Re: relations function in yii frame work
«
Reply #2 on:
October 12, 2012, 12:36:34 PM »
hello phpdeveloper ,
can you make clear that how relation function work ?
Logged
phpdeveloper
Newbie
Posts: 39
Re: relations function in yii frame work
«
Reply #3 on:
October 13, 2012, 05:07:21 AM »
i think you did'nt read the article witch i provided in link well by the way function work like this
Code:
[Select]
'VarName'=>array('RelationType', 'ClassName', 'ForeignKey', ...additional options)
and for more information you must go to link
«
Last Edit: October 16, 2012, 12:19:49 PM by phpdeveloper
»
Logged
Print
Pages: [
1
]
« previous
next »
Webmaster's Community
»
Designing and Development
»
Open Source
»
Yii PHP Framework Support
»
relations function in yii frame work
X
Do you know?
Just make posts in this community and win .com / .org / .net domain name free.
Know more..
Join Now!
Copyright ©
Webmaster's Community - IfandBut.com
Privacy Policy
Terms
Advertise
Contact us
Top
anything