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
During the import the function setValue has in the parameter $value object of the foreign entity which is correct, but as soon as the setter is fired it will finish with exception that instead of an object string was passed.
My primary entity has following setter:
public function setSupplier(\Ausys\Bundle\SupplierBundle\Entity\Supplier $supplier = null)
If you would have any idea how to fix it, I would appreciate your feedback.
Best regards,
Martin
The text was updated successfully, but these errors were encountered:
Hi,
I would like to ask You for help with Data-Import Bundle for SF2 used together with Sonata Admin.
Importing future is based partialy on tutorial mentioned here: http://fungus.at/2013/10/04/universal-csv-import-feature-for-sonata-admin-symfony-2/
Import module works pretty fine until I'm going to import to the Entity / Table with foreign references.
CSV looks like:
id;supplier;name;auNumber;gaNumber;dwg
0;3;Test 1;80A999990;156017213-001;AA-000012541
Supplier is the relation field to another entity.
During the import the function setValue has in the parameter $value object of the foreign entity which is correct, but as soon as the setter is fired it will finish with exception that instead of an object string was passed.
My primary entity has following setter:
public function setSupplier(\Ausys\Bundle\SupplierBundle\Entity\Supplier $supplier = null)
If you would have any idea how to fix it, I would appreciate your feedback.
Best regards,
Martin
The text was updated successfully, but these errors were encountered: