Git Product home page Git Product logo

Comments (20)

FloSeas avatar FloSeas commented on August 27, 2024

i'm on symfony 2.8

from select2entity-bundle.

tetranz avatar tetranz commented on August 27, 2024

I haven't tagged a new release yet.

Try it with dev-master in your composer.json. I'll tag a new release in the next week or so then you'll be able to put it back to 2.*

from select2entity-bundle.

FloSeas avatar FloSeas commented on August 27, 2024

yeah i'm trying, i tried to checkout your last commit with composer, but i think it was not correctly loaded, i'm trying now with dev master

from select2entity-bundle.

FloSeas avatar FloSeas commented on August 27, 2024

i tried this dev#02c44460695efc4ad579dc626e1123cd377a15cc and devmaster only, but it does not work

from select2entity-bundle.

FloSeas avatar FloSeas commented on August 27, 2024

dev-master evry time, just typo in my comment, the source code is present

from select2entity-bundle.

tetranz avatar tetranz commented on August 27, 2024

I just tried it now and it definitely works for me if set it to dev-master. I must admit that I hadn't tried it as a normal composer dependency since that commit but it works fine. Sorry, I know that's not a very helpful response.

Do you get the typical error page which lists all the possible options, there must be about 30 of them, and "transformer" is not one of them?

It looks like you're somehow getting an earlier version. Have you tried deleting the vendor/tetranz directory and running composer update again?

from select2entity-bundle.

FloSeas avatar FloSeas commented on August 27, 2024

yeah i get the typical page, it says it does not exist but transformer is in the list... i don't get why

from select2entity-bundle.

tetranz avatar tetranz commented on August 27, 2024

Take a look in Select2EntityType.php. Near the bottom, does the configureOptions include 'transformer' => null? Also, further up, in buildForm, you should see the new code for transformer. That will tell us if you're getting the wrong version or something else is happening.

from select2entity-bundle.

FloSeas avatar FloSeas commented on August 27, 2024

all is present

from select2entity-bundle.

tetranz avatar tetranz commented on August 27, 2024

Well ... I don't know. If I purposely try to set a bogus option in my form builder I get this:

The option "bogus" does not exist. Defined options are: "action", "allow_clear", "allow_extra_fields", "attr", "auto_initialize", "block_name", "by_reference", "cache", "class", "compound", "constraints", "csrf_field_name", "csrf_message", "csrf_protection", "csrf_token_id", "csrf_token_manager", "data", "data_class", "delay", "disabled", "empty_data", "error_bubbling", "error_mapping", "extra_fields_message", "inherit_data", "invalid_message", "invalid_message_parameters", "label", "label_attr", "label_format", "language", "mapped", "method", "minimum_input_length", "multiple", "page_limit", "placeholder", "post_max_size_message", "primary_key", "property_path", "remote_params", "remote_path", "remote_route", "required", "static_control", "text_property", "transformer", "translation_domain", "trim", "validation_groups". 500 Internal Server Error - UndefinedOptionsException

I know you said "transformer" is not there but are the others relevant to this bundle there? I mean things like "minimum_input_length", "primary_key", "property_path", "remote_params", "remote_path", "remote_route".

I'm really just poking around in the dark here trying to figure out what might be happening. I am using Symfony 3.0 but it should work on 2.8. Unfortunately I don't have a 2.8 installation that I can quickly try it on. Maybe @tmisheva can say what version that update was tested with.

from select2entity-bundle.

FloSeas avatar FloSeas commented on August 27, 2024

well me too, and deleting the dependency + adding don't work too... I'll try an upgrade to symfony 3, to test

from select2entity-bundle.

FloSeas avatar FloSeas commented on August 27, 2024

well it's to complicated to migrate for me now, i'll do some other tests

from select2entity-bundle.

FloSeas avatar FloSeas commented on August 27, 2024

i used it another way without transformer (bit dirty but it works)

from select2entity-bundle.

FloSeas avatar FloSeas commented on August 27, 2024

I wonder also how to update remote route param on field change

from select2entity-bundle.

FloSeas avatar FloSeas commented on August 27, 2024

i close this

from select2entity-bundle.

tmisheva avatar tmisheva commented on August 27, 2024

My fork works with Symfony 2.7.10
Now I'll try the new release with Symfony 2.8

/cc @poneymagique @tetranz

from select2entity-bundle.

FloSeas avatar FloSeas commented on August 27, 2024

@tmisheva you should provider a pull request that'll be great, i use it in a way that solved my problem because in my app it's coupled with another bundle, i'll take a look , thank you for your work

from select2entity-bundle.

tmisheva avatar tmisheva commented on August 27, 2024

My pull request is already merged and the code should be in version 2.4.

After I changed composer.json to be "tetranz/select2entity-bundle": "~2.4" and run composer update it works with Symfony 2.8.4 for me.
In Custom option text section you can see a custom transformer example.

@poneymagique tell me if I can help with something else.

from select2entity-bundle.

FloSeas avatar FloSeas commented on August 27, 2024

@tmisheva ohh :) thank you, if you have some time I have another issue about upload a route on Ajax, i did not have the time to investigate much, it's on my agenda but if you are free help is really appreciated :) Just if you have time, i'll try to provide a solution if you don't have

from select2entity-bundle.

tmisheva avatar tmisheva commented on August 27, 2024

I'm sorry I missed this comment

from select2entity-bundle.

Related Issues (20)

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.