Yii Framework Forum: [EXTENSION] mwbmodelcommand discussion thread - Yii Framework Forum

Jump to content

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

[EXTENSION] mwbmodelcommand discussion thread Rate Topic: -----

#41 User is offline   will 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 179
  • Joined: 21-March 09

Posted 28 April 2009 - 02:45 PM

Quote

It's a great extension. I've used it under linux server and it worked fine for me, but when I am switching to do some code locally on my laptop something is going wrong... After using "mwbmodel model.mwb" command something crashes - nothing appears in console - only popup error "CLI stopped working".



My specs:

Xampp Version 1.7.1 for Windows

Yii framework 1.0.4



Any help please? ;)


Please check the Zip and xml php extensions are enabled.
0

#42 User is offline   imortis 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 16-April 09
  • Location:Poland - Wrocław

Posted 28 April 2009 - 02:56 PM

heh it's not about extensions for sure, I give up.
0

#43 User is offline   salimane 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 12-May 09

Posted 12 May 2009 - 07:22 PM

Quote

finaly, it works !!

i'm still having the same error. it works once but then when i try to regenerate again it gave me the same error , i'm using workbench 5.2.0 beta
Thanks in advance
0

#44 User is offline   Umopepisdn 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 08-May 09

Posted 22 May 2009 - 04:11 PM

So I was finally able to get this to work.  Unfortunately, my system can't seem to handle zip:// references, so I had to manually extract the .XML file inside, and change the code to just open that file.

Not too bad!  One issue is that, using the default naming conventions, it keeps generating belongs_to references with the wrong key name.  Each time I use it, I have to go through my code and change things like:

'User'=>array(self::BELONGS_TO,'User','idUser'),


to

'User'=>array(self::BELONGS_TO,'User','User_idUser'),


But overall, very helpful tool.  Thanks!
0

#45 User is offline   mindeh 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 26-November 08

Posted 02 June 2009 - 04:47 AM

hey,

great extension! I just fixed it to create labels as well (those appeared in soem Yii 1.0.x) - copied few lines from original Yii model command:


0

#46 User is offline   rseller 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 11-June 09

Posted 11 June 2009 - 08:58 AM

Just an FYI. I upgraded to the Beta version of Workbench 5.2.1 and I get the following error when I run mwbmodel

array_merge(): Argument #2 is not an array

I can email you my xml file, if you'd be interested in looking at it.


0

#47 User is offline   cidwebsurfer 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 24-November 09

Posted 24 November 2009 - 02:24 PM

somebody can help me?

>> mwbmodel demo1.mwb

Warning: Invalid argument supplied for foreach() in /var/www/yii/framework/cli/commands/shell/mwbModelCommand.php on line 99

I did everything but don't work
0

#48 User is offline   htouch 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 28-January 10

Posted 02 February 2010 - 04:20 AM

I got the same warning

>> mwbmodel /home/htouch/desktop/tech_doc/MySQL_Workbench_Data/yii_test_blog.mwb

Warning: Invalid argument supplied for foreach() in /opt/lampp/htdocs/yii/framework/cli/commands/shell/mwbModelCommand.php on line 99



I'm in:
MySQL Workbench 5.2.15 Beta
Yii 1.1.0
XAMPP for Linux 1.7.1

Can anyone help?
0

#49 User is offline   INKSH 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 18-August 10

Posted 20 August 2010 - 03:56 AM

Any reason why this extension is not in active development? I am newbie here.. if i am missing something regarding not using this extension...

thanks in advance
0

#50 User is offline   Mindphp 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 21-April 11

Posted 22 May 2011 - 11:23 AM

Thank you very much
0

Share this topic:


  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

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