Yes it works,

thanks a lot !!

On 15 mai, 09:00, Martin Kreidenweis <[EMAIL PROTECTED]> wrote:
> Hi.
>
>
>
>
>
> > I have to translate an old existing web site to a Symfony project.
> > It's my first project using Symfony framework.
> > The database is already existing.
> > I used propel-build-schema to generate the schema.yml file.
> > I have a lot of different table but for now i focus on the Article
> > table.
>
> > My problem is that the schema.yml file looks good, i see all the
> > existing fields and not more but in the BaseArticle.php and
> > BaseArticlePeer.php files i have a new fields (Property of the
> > classes) at end, respectively called
> > protected $id;
> > and
> > const ID = 'article.ID';
>
> ...
> > You can find here a part of schema.yml file :
> >  article:
> >    _attributes:
> >      idMethod: native
> >    oid:
> >      type: INTEGER
> >      required: true
> >      autoIncrement: true
>
> Try adding a "primaryKey: true" here. You haven't set a primary key on
> any field. I guess symfony assumes there is a primary key column named
> "id" then.
>
>  Martin


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to