public static function makeFromRelation( PgClass $relation )
    {

        $output = array();

        foreach( $relation->getAttributes() as $attribute ) {
            $dataType = static::makeFromAttribute( $attribute );
            $output[$dataType->name] = $dataType;
        }

        return $output;

    }
public static function makeFromRelation( PgClass $relation )
    {

        $output = array();

        foreach( $relation->getAttributes() as $attribute ) {
            $dataType = static::makeFromAttribute( $attribute );
            $output[$dataType->name] = $dataType;
        }

        return $output;

    }
public static function makeFromRelation ( PgClass $ relation ) { $ output = array ( ) ; foreach ( $ relation -> getAttributes ( ) as $ attribute ) { $ dataType = static :: makeFromAttribute ( $ attribute ) ; $ output [ $ dataType -> name ] = $ dataType ; } return $ output ; }
Generate a array of DataTypes from a Bond\Pg\Catalog\PgClass object
@param Bond\Pg\Catalog\PgRelation $relation
@return array
Generate a array of DataTypes from a Bond \ Pg \ Catalog \ PgClass object