Giter Club home page Giter Club logo

doctrine-functions's Introduction

๐Ÿ’ซ About Me:

I'm a senior software engineer working on cloud computing technology, primarily in Go. I'm deeply interested in software security and cryptography.

๐ŸŒ Socials:

LinkedIn Twitter Mastodon

๐Ÿ’ป Tech Stack:

Go Scaleway MariaDB Postgres MySQL Redis ANSIBLE CIRCLECI Docker KIBANA Kubernetes LOGSTASH PACKER PODMAN PROMETHEUS Terraform VAULT Vagrant GIT LINUX

๐Ÿ“Š GitHub Stats:



๐Ÿ” Top Contributed Repo


doctrine-functions's People

Contributors

adamors avatar antonioperic avatar artursvonda avatar eduardoconceicao avatar imikay avatar ishakuta avatar lakiboy avatar luxifer avatar scrutinizer-auto-fixer avatar sketchthat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

doctrine-functions's Issues

DayOfYear not working

As I can't find documentation explaining how to use the functions, I'm not able of running
->andWhere("(DateOfYear(u.birthday)-DateOfYear(:today)) >0")

The error I'm getting is:
ClassNotFoundException: Attempted to load class "DateOfYear" from namespace "Luxifer\DQL\Datetime" in /Users/a77/Documents/DEV/UVox Com/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php line 3096. Do you need to "use" it from another namespace?

So which use sentence I need to include on my repository file?
Thanks in advance

SQLite alternative?

SQLite is frequently used instead of MySQL for unit testing.

But some functions differ.

Would you be interested by Pull Requests for SQLite alternatives?

This is a quite easy implement, for example with YEAR:

public function getSql(SqlWalker $sqlWalker)
{
    if ($sqlWalker->getConnection()->getDriver() instanceof AbstractSQLiteDriver) {
        return "DATE('%Y', {$this->dateExpression->dispatch($sqlWalker)})";
    }

    return 'YEAR('.$this->dateExpression->dispatch($sqlWalker).')';
}

What do you think?

Install Luxifer in Symfony 2.4

Hi,
I have been forced to change the config.yml in order to make it work.
This is the right code:

orm:
    dql:
      datetime_functions:
            date:         Luxifer\DQL\Datetime\Date
            datediff:     Luxifer\DQL\Datetime\DateDiff
            dateofmonth:  Luxifer\DQL\Datetime\DateOfMonth
            dateofweek:   Luxifer\DQL\Datetime\DateOfWeek
            dateofyear:   Luxifer\DQL\Datetime\DateOfYear
            week:         Luxifer\DQL\Datetime\Week
            day:          Luxifer\DQL\Datetime\Day
            hour:         Luxifer\DQL\Datetime\Hour
            minute:       Luxifer\DQL\Datetime\Minute
            month:        Luxifer\DQL\Datetime\Month
            quarter:      Luxifer\DQL\Datetime\Quarter
            second:       Luxifer\DQL\Datetime\Second
            time:         Luxifer\DQL\Datetime\Time
            year:         Luxifer\DQL\Datetime\Year
            convert_tz:   Luxifer\DQL\Datetime\ConvertTZ

Update stable tag

Hello.

We are using your package in our project and we are going to RC, and we would like to use stable version instead of dev-master
Would it be possible to create "up to date" stable tag ?

Thanks in advance!

Symfony/Silex bridges

Provide some bridges for function auto-loading and configuration would be a nice addition, would not be?

I may provide some PRs for that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.