2017 © Pedro Peláez
 

library doctrine-extensions-bundle

Alameda Doctrine Extension bundle

image

alameda-red/doctrine-extensions-bundle

Alameda Doctrine Extension bundle

  • Sunday, December 13, 2015
  • by zebba
  • Repository
  • 1 Watchers
  • 0 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Alameda Doctrine Extensions bundle

This bundle provides a couple of mathematical DQL functions to use in Doctrine. Furthermore it provides a couple of DBAL types., (*1)

Installation

You can either modify your composer.json with, (*2)

{
    "require" : {
        "alameda-red/doctrine-extensions-bundle" : "0.*"
    }
}

or run:, (*3)

    $ composer require "alameda-red/doctrine-extensions-bundle=0.*"

Available DQL functions

  • acos
  • acosh
  • asin
  • asinh
  • atan
  • atan2
  • atanh
  • cos
  • cosh
  • degrees
  • powe
  • radians
  • sin
  • sinh
  • tan
  • tanh

There is also the alameda_geo_distance DQL function but due to limitations in the Doctrine DQL parser it does not work at this point., (*4)

Available DQL types

dateinterval

This type will store \DateInterval objects as string representations ('PT1H', 'P1D', ...)., (*5)

timestamp

This type will handle UNIX timestamps., (*6)

The Versions