Comments (20)
i'm on symfony 2.8
from select2entity-bundle.
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.
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.
i tried this dev#02c44460695efc4ad579dc626e1123cd377a15cc and devmaster only, but it does not work
from select2entity-bundle.
dev-master evry time, just typo in my comment, the source code is present
from select2entity-bundle.
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.
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.
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.
all is present
from select2entity-bundle.
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.
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.
well it's to complicated to migrate for me now, i'll do some other tests
from select2entity-bundle.
i used it another way without transformer (bit dirty but it works)
from select2entity-bundle.
I wonder also how to update remote route param on field change
from select2entity-bundle.
i close this
from select2entity-bundle.
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.
@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.
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.
@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.
I'm sorry I missed this comment
from select2entity-bundle.
Related Issues (20)
- How to change the value used from the AJAX response? HOT 2
- I can't select an option HOT 1
- How to restrict adding duplicate tags? HOT 7
- Need help to use it with sonata admin HOT 2
- optgroup option ?
- [EntitiesToPropertyTransformer] Entities result order issue
- Neither the property .... nor one of the methods ... exist and have public access in class "Doctrine\ORM\PersistentCollection"
- Error with doctrine/persistence 2.0.0 HOT 1
- Supporting CollectionType
- Add closeOnSelect option
- Filter doesn´t found HOT 2
- Drop jQuery?
- Argument 1 passed to Tetranz\Select2EntityBundle\Form\Type\Select2EntityType::__construct() must be an instance of Doctrine\Persistence\ManagerRegistry, instance of Doctrine\Bundle\DoctrineBundle\Registry given
- How to set header X-AUTH-USER info from bundle?
- Change of query_parameters is not recognized when done in onchange-function HOT 1
- Dont work with MongoDB DocumentManager
- Note from the maintainer of this project. HOT 7
- Initialize error javascript
- Prefill select on form load wich remote_route
- Is this compatible with symfony 6? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from select2entity-bundle.