Google Groups Home
Help | Sign in
Message from discussion Missing class name
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Jonathan Wage  
View profile
 More options 3 Jul, 14:55
From: "Jonathan Wage" <jonw...@gmail.com>
Date: Thu, 3 Jul 2008 08:55:16 -0500
Local: Thurs 3 Jul 2008 14:55
Subject: Re: [doctrine-user] Missing class name

        # Campaign has many Designers
        Designers:
            refClass: CampaignDesigners
            class: Designer
            local: id
            foreign: designer_ids

A few errors:

1.) refClass should be CampaignDesigner
2.) Your local and foreign are wrong. It should be local: campaign_id and
foreign: design_id as those are the columsn defined on CampaignDesigner
3.) You are using type: bool in a few places. It should be boolean
4.) You have relationships defined Participant which specify local: id but
you have username defined as the primary key, so no id column exists.
5.) You ave DeviceCapability and you have a column defined as capacity_id,
but I think you meant it to be capability_id

I corrected the errors and now this schema builds:
http://pastebin.com/m74fe31ab

Run a diff between mine and yours so you can see my changes.

I would recommend writing your schema and re-building it after every change
;) It looks like you wrote a lot of the schema then tested at the very end
and you end up with lots of errors that are hard to figure out. If you
rebuild it at each step and you get an error, you will know where the error
is obviously and you can fix it right then.

- Jon

On Thu, Jul 3, 2008 at 2:27 AM, ibolmo <Olmo.Maldon...@gmail.com> wrote:

> Hey guys.

> I've created the following schema:
> http://pastie.org/private/crjdlwdbdbrefvi1btl3pa

> When I run: symfony doctrine:build-all-reload frontend

> I get:

> >> doctrine  Are you sure you wish to drop your databases? (y/n)
> y
> >> doctrine  Successfully dropped database
> f...tisan/trunk/config/doctrine.db"
> >> doctrine  Successfully created database
> f...tisan/trunk/config/doctrine.db"

>  Missing class name.

> Can anyone spot where I'm missing the class name?

> Thanks,
> Olmo

--
Jonathan Wage
http://www.jwage.com
http://www.centresource.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google