How to get the names of all columns in a doctrine entity?
As described in the documentation for ClassMetadataInfo you can use the getColumnNames method:
getColumnNames
$em->getClassMetadata('EntitiesMyEntity')->getColumnNames();
2.1m questions
2.1m answers
60 comments
57.0k users