I defined a relationship in my XML like so:
<composite alias="CpdProfile" class="CpdProfile" local="id" foreign="webuser_id" cardinality="one" owner="local" />
And I think that having the alias set to the exact same value as class has caused problems when $xpdo->getFKDefinition is called (and the associated getAggregates and getComposites).
Specifically, in makeform.class.php, line 497:
$object->_relatedObjects[$classKey][$fk]
You can see it tries to access _relatedObjects[$classKey] as an array, which it is not - it is an Object. So it throws the error:
Cannot use object of type CpdProfile_mysql as array
I don’t have the time to delve into the core XPDO code for a fix, so for now I’m just making sure my aliases are different to their class name.
XPOD v1 beta 290 on MODX v1.0