Skip to content

jhartikainen/doctrine2-spatial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

doctrine2-spatial

Some spatial data related classes developed for Doctrine 2 to be used in www.wantlet.com

Implemented composer.json to allow for installation via composer.

Add the following to your composer.json


{
    "require": { "Wantlet": "dev-master" },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/jhartikainen/doctrine2-spatial",
            "comment": "Doctrine Spatial Data Types"
        }
    ]
}

After installation, add this to you app/config/config.yml


# Doctrine Configuration
doctrine:
    dbal:
        types:
            point:
                class:  Wantlet\ORM\PointType

    orm:
      auto_generate_proxy_classes: "%kernel.debug%"
      default_entity_manager:   default
      entity_managers:
          default:
              auto_mapping: true
              dql:
                numeric_functions:
                  DISTANCE: Wantlet\ORM\Distance
                  POINT_STR: Wantlet\ORM\PointStr

About

Some spatial data related classes developed for Doctrine 2 to be used in www.wantlet.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages