2017 © Pedro Peláez
 

library doctrine-functions

A set of User Defined Functions to Doctrine 2, basically for MSSQL.

image

naprstek/doctrine-functions

A set of User Defined Functions to Doctrine 2, basically for MSSQL.

  • Tuesday, December 12, 2017
  • by naprstek
  • Repository
  • 1 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 25 % Grown

The README.md

DoctrineFunctions

A set of extensions to Doctrine 2 that add support for additional query functions available in MSSQL., (*1)

This library is inspired by DoctrineExpressions, see here: [https://github.com/beberlei/DoctrineExtensions]. It contains a lot of functions for other DB., (*2)

The namespace were preserved as they are in DoctrineExtensions, so those two library can be used together., (*3)

DB Functions
MSSQL CAST, FORMAT, ISNULL, GETDATE, MONTH, YEAR, DATEPART

Installation

To install this library, run the command below and you will get the latest version:, (*4)

composer require naprstek/doctrine-functions

Integration to application

in module.config.php add to doctrine section and name function you need. Functions are not added automaticaly (to decrease dependencies and speed up):, (*5)

    'doctrine' => [
        'connection' => [
            'orm_default' => [
                ...
            ],
        ],
        'configuration' => [
            'orm_default' => [ //User Defined Functions
                'string_functions' => [
                    'format' => 'DoctrineFunctions\Query\Mssql\Format',
                    ...
                ],
                'datetime_functions' => [], //when they exist
                'numeric_functions' => [], //when they exist
            ],
        ],
    ],

The Versions

12/12 2017

dev-master

9999999-dev

A set of User Defined Functions to Doctrine 2, basically for MSSQL.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.0

 

The Development Requires

by Vladimir Naprstek

orm database doctrine mssql

12/12 2017

1.1.1

1.1.1.0

A set of User Defined Functions to Doctrine 2, basically for MSSQL.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.0

 

The Development Requires

by Vladimir Naprstek

orm database doctrine mssql

05/12 2017

1.1

1.1.0.0

A set of User Defined Functions to Doctrine 2, basically for MSSQL.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.0

 

The Development Requires

by Vladimir Naprstek

orm database doctrine mssql

05/12 2017

1.0.x-dev

1.0.9999999.9999999-dev

A set of User Defined Functions to Doctrine 2, basically for MSSQL.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.0

 

The Development Requires

by Vladimir Naprstek

orm database doctrine mssql

05/12 2017

1.0

1.0.0.0

A set of User Defined Functions to Doctrine 2, basically for MSSQL.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.0

 

The Development Requires

by Vladimir Naprstek

orm database doctrine mssql