Use:
title: { type: varchar(255), required: true }
missing __type:___
On 5 нояб, 16:11, sajo <[EMAIL PROTECTED]> wrote:
> There is a problem with the YAML in the tutorial. This is the XML it
> generates:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <database name="propel" defaultIdMethod="native" package="lib.model">
>
> <table name="blog_post">
> <column name="id" type="integer" required="true" primaryKey="true"
> autoIncrement="true" />
> <column name="title" varchar(255),="required: true" />
> <column name="excerpt" type="longvarchar" />
> <column name="body" type="longvarchar" />
> <column name="created_at" type="timestamp" />
> </table>
>
> <table name="blog_comment">
> <column name="id" type="integer" required="true" primaryKey="true"
> autoIncrement="true" />
> <column name="blog_post_id" type="integer" />
> <foreign-key foreignTable="blog_post">
> <reference local="blog_post_id" foreign="id" />
> </foreign-key>
> <column name="author" type="varchar" size="255" />
> <column name="email" type="varchar" size="255" />
> <column name="body" type="longvarchar" />
> <column name="created_at" type="timestamp" />
> </table>
>
> </database>
>
> The problem is obviously with the line:
> <column name="title" varchar(255),="required: true" />
>
> which is generated by the YAML:
> title: { varchar(255), required: true }
>
> So, the next question is: what is wrong with that YAML.
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---