public function relations($embedded = false)
    {
        $result = [];
        foreach ($this->_relations as $field => $config) {
            if (!$config['embedded'] || $embedded) {
                $result[] = $field;
            }
        }
        return $result;
    }
public function relations($embedded = false)
    {
        $result = [];
        foreach ($this->_relations as $field => $config) {
            if (!$config['embedded'] || $embedded) {
                $result[] = $field;
            }
        }
        return $result;
    }
public function relations ( $ embedded = false ) { $ result = [ ] ; foreach ( $ this -> _relations as $ field => $ config ) { if ( ! $ config [ 'embedded' ] || $ embedded ) { $ result [ ] = $ field ; } } return $ result ; }
Returns an array of external relation names.

@param  boolean $embedded Include or not embedded relations.
@return array             Returns an array of relation names.
Returns an array of external relation names .