build-model problem

Discussion around this tutorial for symfony 1.0.x

Moderators: dwhittle, Ian

build-model problem

Postby kristian » Thu Dec 15, 2005 9:50 pm

Thanks for the tutorial. I have just started with the askeet tutorial so I'm only on day two, and now I have run into problems.

I have tried to create the schema.xml from the database, with:
Code: Select all
symfony build-schema


but that didn't work. No error. After that I just copied your example xml, so that I could build the model anyway, but it didn't work.

When i run
Code: Select all
symfony build-model

from this dir:
C:\apache2triad\htdocs\symfony\askeet\

Symfony works for a second and the it returns to the command-prompt without errors. But there is nothing generated: there is nothing in the askeet/lib/model/om/ directory.


Code: Select all
symfony init-app frontend

worked fine, so I dont know what is wrong. Please help me.
kristian
Junior Member
 
Posts: 5
Joined: Sat Dec 10, 2005 11:57 am

Re: build-model problem

Postby kristian » Fri Dec 16, 2005 12:04 am

Turns out I was just missing some pear packages... I had a feeling that was the problem :)~ :-)~ :smile:
kristian
Junior Member
 
Posts: 5
Joined: Sat Dec 10, 2005 11:57 am

Re: build-model problem

Postby fabien » Fri Dec 16, 2005 12:19 am

Can you tell us what package? so I can add a test to give user a more meaningful error message.
fabien
Faithful Member
 
Posts: 486
Joined: Sat Oct 22, 2005 9:01 am

Re: build-model problem

Postby kristian » Fri Dec 16, 2005 12:57 am

Well I was missing most everything. I thougt all the pear packages had been installed, but I was missing creole, Propel AND phing in PEAR. I thought these had been installed allready. I have never used pear before, so everything has been a bit confusing, but I think I'm getting the hang of it. Maybe :)~ :-)~ :smile:

Now build-schema and build-model is working.

Now I'm stuck again with the scaffolding (day two):
Code: Select all
symfony generate-propelcrud frontend question Question

(no error)

This time I cant figure out what is missing. I'm using:
symfony-0.5.271
creole 1.0.2 alpha
phing 2.1.1 stable
propel_generator 1.1.1 stable
Last edited by kristian on Fri Dec 16, 2005 12:59 am, edited 1 time in total.
kristian
Junior Member
 
Posts: 5
Joined: Sat Dec 10, 2005 11:57 am

Re: build-model problem

Postby kristian » Fri Dec 16, 2005 5:36 pm

Sorry for bothering you with this trivial stuff. I enabled error_reporting, got an error and solved the problem.
kristian
Junior Member
 
Posts: 5
Joined: Sat Dec 10, 2005 11:57 am


Return to askeet

Who is online

Users browsing this forum: No registered users and 0 guests