src/wcmf/lib/model/mapper/impl/NodeUnifiedRDBMapper.php
protected function getSortableObject(PersistentObjectProxy $objectProxy,
          PersistentObjectProxy $relativeProxy, RelationDescription $relationDesc) {
    // in a many to many relation, we have to modify the order of the relation objects
    if ($relationDesc instanceof RDBManyToManyRelationDescription) {
        $nmObjects = $this->loadRelationObjects($objectProxy, $relativeProxy, $relationDesc);
        return $nmObjects[0];
    }
    return $relativeProxy;
  }
protected function getSortableObject(PersistentObjectProxy $objectProxy,
          PersistentObjectProxy $relativeProxy, RelationDescription $relationDesc) {
    // in a many to many relation, we have to modify the order of the relation objects
    if ($relationDesc instanceof RDBManyToManyRelationDescription) {
        $nmObjects = $this->loadRelationObjects($objectProxy, $relativeProxy, $relationDesc);
        return $nmObjects[0];
    }
    return $relativeProxy;
  }
protected function getSortableObject ( PersistentObjectProxy $ objectProxy , PersistentObjectProxy $ relativeProxy , RelationDescription $ relationDesc ) { // in a many to many relation, we have to modify the order of the relation objects if ( $ relationDesc instanceof RDBManyToManyRelationDescription ) { $ nmObjects = $ this -> loadRelationObjects ( $ objectProxy , $ relativeProxy , $ relationDesc ) ; return $ nmObjects [ 0 ] ; } return $ relativeProxy ; }
Get the object which carries the sortkey in the relation of the given object
and relative.
@param PersistentObjectProxy $objectProxy
@param PersistentObjectProxy $relativeProxy
@param RelationDescription $relationDesc The relation description
@return PersistentObjectProxy
Get the object which carries the sortkey in the relation of the given object and relative .