src/ORM/DataObject.php
public function belongsTo($classOnly = true)
    {
        $belongsTo = (array)$this->config()->get('belongs_to');
        if ($belongsTo && $classOnly) {
            return preg_replace('/(.+)?\..+/', '$1', $belongsTo);
        } else {
            return $belongsTo ? $belongsTo : array();
        }
    }
public function belongsTo($classOnly = true)
    {
        $belongsTo = (array)$this->config()->get('belongs_to');
        if ($belongsTo && $classOnly) {
            return preg_replace('/(.+)?\..+/', '$1', $belongsTo);
        } else {
            return $belongsTo ? $belongsTo : array();
        }
    }
public function belongsTo ( $ classOnly = true ) { $ belongsTo = ( array ) $ this -> config ( ) -> get ( 'belongs_to' ) ; if ( $ belongsTo && $ classOnly ) { return preg_replace ( '/(.+)?\..+/' , '$1' , $ belongsTo ) ; } else { return $ belongsTo ? $ belongsTo : array ( ) ; } }
Returns the class of a remote belongs_to relationship. If no component is specified a map of all components and
their class name will be returned.

@param bool $classOnly If this is TRUE, than any has_many relationships in the form "ClassName.Field" will have
the field data stripped off. It defaults to TRUE.
@return string|array
Returns the class of a remote belongs_to relationship . If no component is specified a map of all components and their class name will be returned .