Forum Linux.pl

Programowanie => PHP, *SQL => Wątek zaczęty przez: w 2010-12-04, 22:14:01

Tytuł: ForeignTable: Symfony - błąd
Wiadomość wysłana przez: w 2010-12-04, 22:14:01
Mam problem: robię według podręcznika symfony 1.2 doctrine, pomimo to, parser yaml narzeka, że nie trawi foreignTable?

news:
       actAs: { Timestampable: ~ }
       columns:
                title:         { type: string(255), notnull: true, unique: false }
                description:   { type: string(65536), notnull: true, unique: false }
                author_id:     { type: integer, notnull: true, unique: false, foreignTable: user, foreignReference: id }
                creation_date: { type: datetime, notnull: true, unique: false }

user:
        actAs: { Timestampable: ~ }
        columns:
                name:          { type: string(255), notnull: true, unique: false }
                last_name:     { type: string(1024), notnull: true, unique: false }
                email:         { type: string(255), notnull: false, unique: true }
                creation_date: { type: date, notnull: true, unique: false }
Co robię źle?