Hi, the ~ in yaml means null, that means that your field has no value, and
in your case, inherits the default values for fields detected as a primary
key (which is the case for fields named "id")

fields created_at and updated_at are detected as timestamp, and therefor
inherits the default values for timestamps fields.

On Fri, Oct 17, 2008 at 3:47 PM, Reynier Perez Mira <[EMAIL PROTECTED]> wrote:

>
> Hi:
> I have been checking the new form Framework book [1] and I notice something
> insteresting to me:
>
> propel:
>  article:
>    id:                 ~
>    title:              { type: varchar(255), required: true }
>    slug:               { type: varchar(255), required: true }
>    content:    longvarchar
>    status:             varchar(255)
>    author_id:    { type: integer, required: true, foreignTable: author,
> foreignReference: id, OnDelete: cascade }
>    category_id:  { type: integer, required: false, foreignTable: category,
> foreignReference: id, onDelete: setnull }
>    published_at: timestamp
>    created_at:   ~
>    updated_at:  ~
>    _uniques:
>      unique_slug: [slug]
>
> As you can see in the code above at the "id" appears the character "~".
> ¿This mean that this field have the common properties for a ID field in a
> table?  I mean something like this:
>
> id { type: INT, required: true, autoIncrement: true, primaryKey: true }
>
> [1] http://www.symfony-project.org/book/forms/1_1/en/04-Propel-Integration
>
> Cheers and thanks in advance
> Ing. Reynier Pérez Mira
> Grupo de Soporte al Desarrollo - Dirección Técnica IP
>
>
> >
>

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