Actually, using just model, instead of lib.model
as in
<database name="propel" package="model">
works.

G.


On Apr 29, 9:44 pm, ghige <[EMAIL PROTECTED]> wrote:
> Hi Adinda,
> You got that right from the tutorial and you're not missing anything.
> The actual name of the database is defined in database.yml.
>
> I had the very same problem with a new version of symfony (never had
> before).
>
> I googled this a bit and this is the solution I found 
> (http://www.symfony-project.com/forum/index.php/m/17389/)
>
> Shortly
> launch symfony propel-build-schema xml, then change
>  <database name="propel" defaultIdMethod="native" noxsd="true">
> into
>  <database name="propel" defaultIdMethod="native" noxsd="true"
> package="lib.model">
> in config/schema.xml.
>
> At this point, launching symfony propel-build-model should work.
>
> hope this helps,
> Guglielmo
>
> On Apr 24, 10:28 am, "Adinda Praditya" <[EMAIL PROTECTED]> wrote:
>
> > Hi list,...
>
> > I'm followinghttp://www.symfony-project.com/askeet/2. I wrote the
> > schema.xml by hand. i wrote the config/databases.yml like this:
>
> ...
> > [propel-om] Processing: schema.xml
> > Execution of target "om-template" failed for the following reason:
> > /usr/share/php5/PEAR/symfony/vendor/propel-generator/build-propel.xml:436:1:
> > No package found for database "propel" in schema.xml. The
> > propel.packageObjectModel property requires the package attribute to
> > be set for each database.
> > [phingcall] 
> > /usr/share/php5/PEAR/symfony/vendor/propel-generator/build-propel.xml:436:1:
> > No package found for database "propel" in schema.xml. The
> > propel.packageObjectModel property requires the package attribute to
> > be set for each database.
>
> > BUILD FINISHED
>
> > Total time: 0.4982 seconds>> file-     
> > /home/bappenas/sfprojects/askeet/config/generated-schema.xml
>
> > ============
>
> > I've noticed thehttp://www.symfony-project.com/askeet/2said:
>
> > The database name is set to propel in this file, whatever the actual
> > database name. This is a parameter used to connect the Propel layer to
> > the symfony framework. The actual name of the database will be defined
> > in the databases.yml configuration file (see below).
>
> > So which one is right? Did i miss something in the tutorial? Please help.
>
> > Thanks,
>
> > Adinda P


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to