Last updated Apr 7th, 2019 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
$292 per month—let's make that $500!Learn more
Gets a field name as represented in the database container. This gets the name of the field, fully-qualified by either the object table name or a specified alias, and properly quoted.
API Docs: http://api.modxcms.com/xpdo/om/xPDOObject.html#getFieldName
string getFieldName (string $k, [string $alias = null])
$document = $xpdo->getObject('Document',1); echo $document->getFieldName('editedby'); // prints `documents`.`editedby`