public function toArray()
    {
        $aReturn = array();

        foreach ($this->values as $sKey => $oEntity) {
            /* @var EntityInterface $oEntity */
            $aReturn[$sKey] = $oEntity->toArray();
        }

        return $aReturn;
    }
public function toArray()
    {
        $aReturn = array();

        foreach ($this->values as $sKey => $oEntity) {
            /* @var EntityInterface $oEntity */
            $aReturn[$sKey] = $oEntity->toArray();
        }

        return $aReturn;
    }
public function toArray ( ) { $ aReturn = array ( ) ; foreach ( $ this -> values as $ sKey => $ oEntity ) { /* @var EntityInterface $oEntity */ $ aReturn [ $ sKey ] = $ oEntity -> toArray ( ) ; } return $ aReturn ; }
return this collection as array

@return array
return this collection as array