One step after another ;)
Now creation of enum fields is not working as before:

in 0.1 the syntax for creating an enum field with a yml schema was
like this:

Resource:
  tableName: resource
  columns:
    media_type: {type: [user_uri, group_uri, bookmark, text, photo,
video]}

Unfortunately this now yields the following error:

  [sfException]
  Unknown field type 'Array'.

Does anyone know how the correct yml-syntax for enum fields in the
current version of doctrine?

Cheers, Andy

On Oct 24, 5:55 pm, Andreas Stephan <[EMAIL PROTECTED]>
wrote:
> I found out, that when I delete the whole lib/doctrine folder, not
> only the lib/doctrine/generated folder,
> sql creation is working (altough insert is still failing, but thats
> another story).
>
> Andy
>
> On Oct 24, 5:19 pm, Andreas Stephan <[EMAIL PROTECTED]>
> wrote:
>
> > Hi, I updated to the latest doctrine version from branches/1.0. I am
> > using symfony 1.08
>
> > Even if I use the simplest schema.possible, when trying to do
> > "doctrine-build-sql" it always returns the following error:
>
> > [sfException]
> > Unknown field type ''.
>
> > No files are written to data/sql.
>
> > This is the schema.yml I use:
>
> > User:
> >   columns:
> >     user_id:
> >       type: integer
> >       length: 4
>
> > How can I get the table creation to work again?
>
> > Cheers, Andy


--~--~---------~--~----~------------~-------~--~----~
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