Yii Framework Forum: Gii Generates Models Without Relations Array, Yii1.1.12 - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Gii Generates Models Without Relations Array, Yii1.1.12

#1 User is offline   tihanyilaci 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 29
  • Joined: 29-July 11

Posted 13 November 2012 - 09:56 AM

Hi,

I am Laszlo from Hungary. Used to work with yii-1.1.10 but tried yii-1.1.12.

I have something strange with yii-1.1.12. When gii generates the model, the relations array remains empty. Everything works with yii-1.1.10, with the same tables. So i think something happened with the latest yii. Is there a bug?
os: Win7 64, win 7 32
web server: wamp
browser: latest firefox and chrome
yii-version: 1.1.12

Thanks
0

#2 User is offline   tihanyilaci 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 29
  • Joined: 29-July 11

Posted 13 November 2012 - 10:47 AM

Hi Everybody, i think problem solved, there was no any bug here. It was connected to yii-user extension's tablePrefix option. If you generate a model from a table named without prefix, you have to delete the prefix from the gii generate options for sure, because the deafult option was 'tbl_' due to yii-user's settings i think.

Sorry about it, but hope someone can learn from it also.

Bye
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users