Code Monkey home page Code Monkey logo

expandedcollectionbundle's People

Contributors

abdielcs avatar technetium avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

expandedcollectionbundle's Issues

Recreating values when saving

As example, I have a 3 entities, Post, Tag, PostsTags (with additional attributes). So when i display form, everything works fine. But if i sumbit form without changing data (in Sonata) i have next troubles:

  1. Related PostsTags records are deleted (when orphan-removal="true")
  2. Created new PostsTags records with same Tags/

As i see problem in this line

$middle = $middleRef->newInstance();

https://github.com/abdielcs/ExpandedCollectionBundle/blob/master/Form/DataTransformer/MiddleClassTransformer.php#L77

PostsTags entity always is new object.

Have you any solution for this? Thanks.

Allow sf5

Hello
can you allow symfony 5 in composer.json ?

Edit documentation for complex fields

Add the section where this is explained:

        ->add(
            'subscriptions',
            ExpandedOTMType::class,
            [
                'class'  => Subscription::class,
                'fields' => [
                    ['property' => '__toString', 'label' => 'Abonnement'],
                    'user',
                    ['property' => 'createdAt', 'label' => 'Date', 'type' => 'dateable'],
                ],
                'attr'   => ['class' => 'table table-striped'],
                'label'  => false,
            ]
        )

Again, i'll try to push some updates on my own when I'll get some time :)

Add global controls such as select/unselect all

Hey, just discovered this bundle and it is quite awesome ! I'm about to implement global controls for this, leaving this issue in case someone thinks about it, and I'll try to push my results here !

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.