How can custom properties be added to a column in Doctrine
- by murze
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
)