How can custom properties be added to a column in Doctrine
        Posted  
        
            by murze
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by murze
        
        
        
        Published on 2010-03-25T08:43:36Z
        Indexed on 
            2010/03/25
            8:53 UTC
        
        
        Read the original article
        Hit count: 365
        
With doctrine if you execute this code
$columns = $accountTable->getColumns();
foreach ($columns as $column)
{
    print_r($column);
}
you could get for example this as result:
Array
(
    [type] => integer
    [length] => 20
    [autoincrement] => 1
    [primary] => 1
)
Array
(
    [type] => string
    [length] => 255
)
Is there a way to add custom properties to a column, so that the result would be:
Array
(
    [type] => integer
    [length] => 20
    [autoincrement] => 1
    [primary] => 1
    [customproperty] => customvalue
)
Array
(
    [type] => string
    [length] => 255
)
        © Stack Overflow or respective owner