-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom importer not register the right way #231
Labels
Comments
Yep got the same problem with the latest version of Sylius. Using CSV format it only shows JSON on the fontend services.yaml (store ressource registered as sylius_store_locator.store)
bin/console sylius:importer
But in the frontend admin grid of my store resource, the only option of the importer is JSON. The quick fix I found is ImportType.php
But that is not good... I'll see if I can investigate it further. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I have a custom entity.
I add a basic importer configuration, but only json display in select importer format.
The thing is the service is register under the identifer app.foo and not only foo, but the buildChoices importer is looking for foo only not app.foo.
If i change my type with foo only, the importer won't display.
Here is my configuration:
More informations :
In ImportType.php, the options array has that wrong field : 'importer_type' without the app.
In the import.html.twig, block.settings.resources.metadata.name got only 'foo' , and not 'app.foo'
Example :
Sylius\Bundle\ResourceBundle\Grid\View\ResourceGridView {#16192 ▼
-metadata: Sylius\Component\Resource\Metadata\Metadata {#15196 ▼
-name: "seo_url"
-applicationName: "app"
-driver: "doctrine/orm"
-templatesNamespace: null
-parameters: array:2 [▼
"classes" => array:5 [▼
"model" => "App\Entity\Seo\SeoUrl"
"repository" => "App\Repository\Seo\SeoUrlRepository"
"controller" => "Sylius\Bundle\ResourceBundle\Controller\ResourceController"
"factory" => "Sylius\Component\Resource\Factory\Factory"
"form" => "Sylius\Bundle\ResourceBundle\Form\Type\DefaultResourceType"
]
"driver" => "doctrine/orm"
]
}
The text was updated successfully, but these errors were encountered: