Le 15/04/2011 17:05, Johannes Harestad a écrit :
Hi.
(I am currently on PR11)

1.
-----
Whenever I create an entity from the CLI, the annotations are not the
same as used in the examples from "The Book" on ORM. My first thought
was that this was just a "sheet" created. To let Doctrine manage the
entity, one would have to add the real annotations manually.

I had an existing database, and I imported the mappings and created
the entities. As described above, my understanding is that one needs
annotations as described in "The book". But these entities works just
fine, with no annotations starting on "@orm:" at all.

So my questions is, whats "it" called and where is "it", whatever that
now lets Doctrine use this entity. There must be "something" external
helping the entity and Doctrine specifying types on variables used in
the database and so on... Why is this not mentioned in "The Book".
Thanks.

2.
-----
Following the example on updating schemas from "Overview" on ORM does
not work. I add fields to my entity, but nothing happens on schema
update. --dump-sql on create shows the sql for the old entity without
the field, and update won't do anything because nothing new happened
(it claims...). Thanks.
I don't really understand your issue. Could you describe precisely how you created your entities and which mapping format you use ?
3.
-----
Do I need to create entities through CLI? Can't I just manually create
the files? After doing this, how can I tell Doctrine to create a table
for it? Thanks.
You can create the entity directly. The command is just a tool to help.
Then, just run doctrine:schema:create to create the tables (or doctrine:schema:update when you still have a previous version of the database)
Regards,
Johannes Harestad



--
Christophe | Stof

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

Reply via email to