understanding the arguments passed to hasColumn() in Doctrine

Posted by ajsie on Stack Overflow See other posts from Stack Overflow or by ajsie
Published on 2010-04-17T19:03:00Z Indexed on 2010/04/18 10:33 UTC
Read the original article Hit count: 148

Filed under:

Im using Doctrine and i dont quite understand this code here:

    $this->hasColumn('id', 'integer', 8, array(
         'type' => 'integer',
         'length' => 8,
         'fixed' => false,
    ));

what is the 2nd and 3rd argument in hasColumn for?

the 2nd is the type and the 3rd the length? if so, why do we specify them again in the array?

© Stack Overflow or respective owner

Related posts about doctrine