Wednesday, December 31, 2014

Creating Custom DQL MySQL Functions in Symfony2 with Doctrine

    Hi, this post is all about how to create and register doctrine custom DQL function with symfony. By default symfony with doctrine not allows some special functions like Cos, Sin, Acos, Atan, Date_diff, Concat etc.,

    But Doctrine allow us to write three different types of custom DQL functions such as datetime, numeric, string functions. so, this post guide you to take advantage over doctrine custom DQL functions with symfony.

    Ok, by simple three steps am gonna guide you to write your own DQL functions.