Skip to content

This extensions provides access to basic math-related DQL functions as well as some DBAL types

License

Notifications You must be signed in to change notification settings

alameda-red/DoctrineExtensionsBundle

Repository files navigation

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.

Installation

You can either modify your composer.json with

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

or run:

    $ 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.

Available DQL types

dateinterval

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

timestamp

This type will handle UNIX timestamps.

About

This extensions provides access to basic math-related DQL functions as well as some DBAL types

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages