xPDO.getAggregates
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::getAggregates¶
Returns the aggregate relationship definitions for a class, keyed by relation alias. An aggregate relationship points to a related object whose foreign key lives on the related object (a one-to-one or one-to-many relationship where the current class is the owner).
Syntax¶
array getAggregates (string $className)
Example¶
$aggregates = $xpdo->getAggregates('modResource');
print_r($aggregates['Template']);
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










