I'm developing an Apigility driven web application based on Zend Framework 2. For the model layer I'm using the ZfcBase
DbMapper
.
Currently the columns in my DB tables are named exactly like the correspondent model properties. For both I'm using camelcased notation (it was the first temporary solution). Now I'd like to correct the naming of the columns and make them undescored.
How to do this without using an ORM (like doctrine)? I guess, I'll need the Filters (Zend\Filter\Word\CamelCaseToUnderscore
, Zend\Filter\Word\UnderscoreToCamelCase
, Zend\Filter\StringToLower
or just strtolower(...)
). Well, but where and how should they be utilized here?