_attributes in Doctrine.

Discussion relating to version 1.3.x and 1.4.x

_attributes in Doctrine.

Postby Nicolas400 » Sat Dec 05, 2009 5:27 am

Hi, I´m with SF 1.4 and Doctrine.
How do I use "_attribute" yml tag ?? in my schema...

Best regards
Nicolas400
Junior Member
 
Posts: 27
Joined: Tue Aug 04, 2009 4:34 am
Location: Necochea, Argentina

Re: _attributes in Doctrine.

Postby rschumacher » Sun Dec 06, 2009 12:02 am

"_attribute" ?
...doesn't mean anything to me, can you elaborate more about what you are trying to do and where you are facing a problem? What's your attempt?
User avatar
rschumacher
Faithful Member
 
Posts: 231
Joined: Wed Aug 15, 2007 3:28 pm
Location: Basel, Switzerland

Re: _attributes in Doctrine.

Postby Nicolas400 » Sun Dec 06, 2009 11:30 pm

Hi, wel I think I figured out.
In Propel yml file ( schema.tml ) you can use
_atributes tag, but there is no such a tag in Doctrine.

But I can replace it with something like this:

Code: Select all
Clientes:
  tableName: t_clientes
  columns:
    id:
      type: integer(8)
      unsigned: 1
      primary: true
      autoincrement: true
    apeynom:
      type: string(256)
      notnull: true


so in the DBMS the table is named "t_cliente" but in symfony and php is named "clientes".

Best Regards
Nicolas400
Junior Member
 
Posts: 27
Joined: Tue Aug 04, 2009 4:34 am
Location: Necochea, Argentina


Return to symfony 1.3 and 1.4

Who is online

Users browsing this forum: No registered users and 5 guests