You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thank you so much for this bundle.
In my localhost installation all works fine, both JQueryAutocompleter and data persist.
My classType is:
classClientTypeextendsAbstractType
{
publicfunctionbuildForm(FormBuilder$builder, array$options)
{
//I put only interesting field. Other ones works properly$builder->add('City', 'genemu_jqueryautocompleter', array(
'route_name' => 'city_ajaxloader',
'class'=>'MyBundle\Entity\City',
'widget' => 'entity',
'property'=>'city_name',
));
}
I have uploaded on an hosting server all the code I have in my local installation. All works fine, but when I persist my client entity, city entity don't be saved. In my local installation all goes right, but in my remote hosting not. source codes are the same.
I've tried to go to the SymfonyProfiler (both in local that in remote installation) and in "Request POST Parameters" I have noticed that the double quote of the "stringfied" json element is interpreted in different ways:
Hi, thank you so much for this bundle.
In my localhost installation all works fine, both JQueryAutocompleter and data persist.
My classType is:
I have uploaded on an hosting server all the code I have in my local installation. All works fine, but when I persist my client entity, city entity don't be saved. In my local installation all goes right, but in my remote hosting not. source codes are the same.
I've tried to go to the SymfonyProfiler (both in local that in remote installation) and in "Request POST Parameters" I have noticed that the double quote of the "stringfied" json element is interpreted in different ways:
local:
MyBundle_clienttype %array% { name: 'John', last_name: Smith, ....., Cyty: '{"label":"CROTONE|KR","value":3236}' }
remote:
MyBundle_clienttype %array% { name: 'John', last_name: Smith, ....., City: '{"label":"ORLANDO|FL","value":3236}' }
In the Symfonyprofiler also I have noticed that Symfony does not made the query for retrieving city id in the remote installation:
//In local installation
SELECT t0.id AS id1 FROM City t0 WHERE t0.id = ?
Parameters: ['3236']
and consequently city id does not be saved in the client.city_id column.
Seems that Sympony2 does not see that i've changed the city field.
I'm not sure that is a AjaxAutoloader problem (I'm sure), but I can't find any solution for this.
Do you have any suggestion?
Many thanks!
The text was updated successfully, but these errors were encountered: