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:
$em->getClassMetadata('Entities\MyEntity')->getColumnNames();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With