Getting column names in a doctrine2 entity
doctrine-orm
Solution
As described in the documentation for ClassMetadataInfo you can use the `getColumnNames` method:
$em->getClassMetadata('Entities\MyEntity')->getColumnNames();
Problem
How to get the names of all columns in a doctrine entity?