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.
$405 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.
string getFieldName (string $k, [string $alias = null])
$document = $xpdo->getObject('Document',1); echo $document->getFieldName('editedby'); // prints `documents`.`editedby`