Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in documentation for configuration Symfony #181

Open
jeremy-hyde opened this issue Jul 27, 2017 · 1 comment
Open

Error in documentation for configuration Symfony #181

jeremy-hyde opened this issue Jul 27, 2017 · 1 comment

Comments

@jeremy-hyde
Copy link

On this page
The config is:

doctrine:
    dbal:
        types:
            geometry:   CrEOF\Spatial\DBAL\Types\GeometryType
            point:      CrEOF\Spatial\DBAL\Types\Geometry\PointType
            polygon:    CrEOF\Spatial\DBAL\Types\Geometry\PolygonType
            linestring: CrEOF\Spatial\DBAL\Types\Geometry\LineStringType

    orm:
        dql:
            numeric_functions:
                st_contains:     CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STContains
                contains:     CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Contains
                st_area:         CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Area
                st_geomfromtext: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\GeomFromText
                st_intersects:     CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STIntersects
                st_buffer:     CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STBuffer
                point: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Point

And should be:

doctrine:
    dbal:
        types:
            geometry:   CrEOF\Spatial\DBAL\Types\GeometryType
            point:      CrEOF\Spatial\DBAL\Types\Geometry\PointType
            polygon:    CrEOF\Spatial\DBAL\Types\Geometry\PolygonType
            linestring: CrEOF\Spatial\DBAL\Types\Geometry\LineStringType

    orm:
        entity_managers:
            default:
                dql:
                    numeric_functions:
                        st_contains:     CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STContains
                        contains:     CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Contains
                        st_area:         CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Area
                        st_geomfromtext: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\GeomFromText
                        st_intersects:     CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STIntersects
                        st_buffer:     CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STBuffer
                        point: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Point

Source: Doc Symfony

@yurtesen
Copy link

This is not an error. Symfony manual clearly tells that this way is used often in documentation. See Shortened Configuration Syntax

When you are only using one entity manager, all config options available can be placed directly under doctrine.orm config level.

This shortened version is commonly used in other documentation sections. Keep in mind that you can't use both syntaxes at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants