bambinou
(Benoitrivaux)
1
Hi,
Could someone explain to me why there is codes for table relations in Yii 1 or 2 when this can be done directly in Mysql please?
I use MYSQL benchmark where I can set "many to many" "one to many" and so on.
Why this aswell in Yii itself? I do not understand this bit.
Thank you,
Ben
So that you can access the relational data also in OOP way… and thus use it easily across your MVC structure and other Yii objects like dataProviders.
Note: there is no one single way to do things though - it depends on your use case.
bambinou
(Benoitrivaux)
3
Thanks for the reply, I understand now :-))
Ben