Unable to scaffold nonexistent model

Discussion specific to symfony 1.1.x stable

Moderator: hartym

Unable to scaffold nonexistent model

Postby javo » Sat Aug 09, 2008 11:19 am

Hi,
I'm new to symfony, I've created this schema.yml
http://phpfi.com/341606
I run
$ php symfony propel:build-model
$ php symfony propel:build-sql
$ php symfony propel:insert-sql
$ php symfony propel:build-form
php symfony propel:generate-crud blogate articles Articles --with-show


and I get
Unable to scaffold nonexistent model "Articles".

what can be the problem please?

thx
javo
Junior Member
 
Posts: 6
Joined: Sat Aug 09, 2008 11:12 am

Re: Unable to scaffold nonexistent model

Postby fivedollarones » Sat Aug 09, 2008 9:26 pm

Did you do a 'symfony cc' after inserting the sql?
fivedollarones
Junior Member
 
Posts: 3
Joined: Tue Feb 05, 2008 7:47 pm

Re: Unable to scaffold nonexistent model

Postby javo » Mon Aug 11, 2008 3:38 pm

ok so I found my problem

---> wrong schema.yml

I had to use 'longvarchar' instead of text,
'updated_at ~' instead of datetime and 'boolean' instead of 'bool'

thx you for your msg anyway :)~ :-)~ :smile:
javo
Junior Member
 
Posts: 6
Joined: Sat Aug 09, 2008 11:12 am


Return to symfony 1.1

Who is online

Users browsing this forum: Google [Bot] and 1 guest