GithubHelp home page GithubHelp logo

I want to contribute about doctrine-filter HOT 6 OPEN

maldoinc avatar maldoinc commented on July 2, 2024
I want to contribute

from doctrine-filter.

Comments (6)

maldoinc avatar maldoinc commented on July 2, 2024

Hi @sebcar, thanks for taking an interest in the project. At the moment as you can see there isn't much of a backlog.

These are some of the things I wanted to do:

  • Finish "filtering by joined entitied" feature (currently wip)
  • Check/add support for doctrine 3 and with a test suite that reflects that using a matrix test suite
    • every php version tests against doctrine 2 and 3 separately

If you have any projects where using doctrine-filter would be appropriate then feel free to pull it in those and start using it, then you have a better idea on what to work on and the project can evolve based on the needs of the users. Alternatively the second point can be a good starting point.

from doctrine-filter.

sebcar avatar sebcar commented on July 2, 2024

Thanks! I'll see what I can do.

from doctrine-filter.

sebcar avatar sebcar commented on July 2, 2024

I'm trying composer update and there is a lot of things to change.

from doctrine-filter.

sebcar avatar sebcar commented on July 2, 2024

Hi. Doctrine\Common\Annotations\Reader was removed in Doctrine ^2.17 and ^3. So I'm changing Reader for NativeAttributeReader. @maldoinc do you think this is ok?

<?php

namespace Maldoinc\Doctrine\Filter\Reader\AttributeReader;

use Maldoinc\Doctrine\Filter\Reader\AttributeReader\NativeAttributeReader;

class DoctrineAnnotationReader implements AttributeReaderInterface
{
    private NativeAttributeReader $reader;

    public function __construct(NativeAttributeReader $reader)
    {
        $this->reader = $reader;
    }

    public function getPropertyAttributes(\ReflectionProperty $reflectionProperty, string $attributeClass): array
    {
        $attribute = $this->reader->getPropertyAttributes($reflectionProperty, $attributeClass);

        return $attribute ? [$attribute] : [];
    }
}

from doctrine-filter.

maldoinc avatar maldoinc commented on July 2, 2024

Was it removed or deprecated? In any case we probably need to keep it around for people using doctrine annotations instead of attributes. Will eventually get removed though when the min php version is set to 8.

Also judging from https://www.doctrine-project.org/2023/10/11/orm3-beta1-dbal4-rc1-future-plans.html v3 so far has no breaking changes with regard to what the lib uses.

We could look into adding support for v3 and update the matrix test workflow so that for every php version it first checks using doctrine 2 then 3. Ideally on separate jobs on the matrix but we can also do it on the same one

in tests.yml after installing and testing with doctrine 2 we can tell composer to install v3 and re-run tests.

Alternatively as a user if you have any feature requests something you'd like to work on besides this then feel free to take a look at that. Like I said filter-joins are wip so we could also look into taking that to the finish line whatever remains.

from doctrine-filter.

sebcar avatar sebcar commented on July 2, 2024

Was removed in 2.17. So you said that 2.17 must be skipped?

from doctrine-filter.

Related Issues (1)

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.