xPDO.getModelVersion
Last updated not available | 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.
Backers
Budget
$185 per month—let's make that $500!
Learn morexPDO::getModelVersion¶
Returns the version string of the schema the class was generated from, for example '3.0'. Returns '1.0' when no version is recorded for the class.
Syntax¶
string getModelVersion (string $className)
Example¶
$version = $xpdo->getModelVersion('MODX\\Revolution\\modResource');
// '3.0'
See Also¶
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.
Backers
Budget
$185 per month—let's make that $500!
Learn more










