-
Notifications
You must be signed in to change notification settings - Fork 125
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
Non standard bundle namespace, 500 error #708
Comments
@denys281 please post the beggining of your |
Bundle in
|
Ok, in return $this->cache_dir.'/Admingenerated/'.str_replace('\\', DIRECTORY_SEPARATOR, $namespace).$bundle_name; to return $this->cache_dir.'/Admingenerated/'.str_replace('\\', DIRECTORY_SEPARATOR, $namespace).str_replace('\\', DIRECTORY_SEPARATOR, $bundle_name); And in start generate folder in cache like
_Update_: it generate wrong namespace in use Admingenerated\AcmeBackendStaticBundle\Form\BaseStaticType\FiltersType as BaseFiltersType; I fix it manually and next error: Unable to find template "AcmeBackend\StaticBundle:StaticList:index.html.twig". |
@denys281 what happens if you try: generator: admingenerator.generator.doctrine
params:
model: Webmil\Frontend\StaticBundle\Entity\StaticData
namespace_prefix: Webmil\Backend # added Backend
bundle_name: StaticBundle # removed Backend |
|
Can you try also with double slashes |
same error. |
Hmm.. just to be sure it's not escapeing characters problem, please try also with 3 |
Same error. |
Ok, the line return $this->cache_dir.'/Admingenerated/'.str_replace('\\', DIRECTORY_SEPARATOR, $namespace).$bundle_name; is fine, but something else is throwing an error and you get the EmptyBuilder generated... |
I've faced the same problem. Followed the official documentation at http://symfony2admingenerator.org/documentation/generator-params.html# and find out the param (subfolder) in generator.yml, that helps in a custom namespace tree. generator: admingenerator.generator.doctrine
params:
model: Company\Bundle\AdminBundle\Entity\MyEntity
namespace_prefix: Company
subfolder: Bundle
bundle_name: AdminBundle |
When I have bundle for example
Acme/Backend/BlogBundle
. On any action of this bundle symfony give 500.But
Acme/BackendBlogBundle
works perfect.Stack Trace
Problem is that in
cache
Admingenerator generate folder with nameAcmeBackend\BlogBundle
The text was updated successfully, but these errors were encountered: