xPDOManager.alterObjectContainer
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
$194 per month—let's make that $500!
Learn morexPDOManager::alterObjectContainer¶
Alters an existing object container (table) to match the current schema of the class. Use this after changing a field, index or constraint in your model to bring the database table in line with it.
Syntax¶
boolean alterObjectContainer (string $className, [array $options = array()])
Example¶
$manager = $xpdo->getManager();
$manager->alterObjectContainer('MyVendor\\MyPackage\\MyModel');
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
$194 per month—let's make that $500!
Learn more










