Note that there are some explanatory texts on larger screens.

plurals
  1. POOverwrite generator.yml
    text
    copied!<p>i`m need overwrite generator.yml file from bundle in vendors. Overwrite bundle is ok, override document (odm) too. How right overwrite generator.yml? I need to add two field to existing bundle. Help me pleace...</p> <p>Admin generator - Cedric Lambardot</p> <p>I`m have original generator.yml:</p> <pre><code>generator: admingenerator.generator.doctrine_odm params: model: Acme\ProductBundle\Document\Product namespace_prefix: Acme bundle_name: ProductBundle i18n_catalog: AcmeProductBundle object_actions: delete: ~ fields: name: label: product.name model: label: model #... builders: list: params: title: product.list display: [ name, model, ] actions: new: ~ object_actions: edit: ~ delete: ~ filters: params: display: [ name, model, ...] new: params: title: product.new tabs: 'data': 'data': [ name, model, ... ] 'images': 'images': [ ... ] 'seo': 'seo': [ ... ] 'parameter.plural': 'parameter.plural': [ ... ] actions: list: ~ save: ~ save-and-list: ~ edit: params: title: "\"{{ Product.name }}\"" tabs: 'data': 'data': [ name, model, ... ] 'images': 'images': [ ... ] 'seo': 'seo': [ ... ] 'parameter.plural': 'parameter.plural': [ ... ] 'suiteCompose': 'suiteCompose': [ ... ] actions: list: ~ save: ~ save-and-list: ~ actions: params: object_actions: delete: ~ </code></pre> <p>Create same file in the overwriten Bundle, pointing out to him a new document and add the two fields. But all the same bundle is generated by the old generator.yml</p> <pre><code>generator: admingenerator.generator.doctrine_odm params: model: Acme\AnniProductBundle\Document\Product namespace_prefix: Acme bundle_name: ProductBundle i18n_catalog: AcmeProductBundle object_actions: delete: ~ fields: name: label: product.name model: label: model #... builders: list: params: title: product.list display: [ name, model, ] actions: new: ~ object_actions: edit: ~ delete: ~ filters: params: display: [ name, model, ...] new: params: title: product.new tabs: 'data': 'data': [ name, model, ... ] 'images': 'images': [ ... ] 'seo': 'seo': [ ... ] 'parameter.plural': 'parameter.plural': [ ... ] actions: list: ~ save: ~ save-and-list: ~ edit: params: title: "\"{{ Product.name }}\"" tabs: 'data': 'data': [ name, model, ... ] 'images': 'images': [ ... ] 'seo': 'seo': [ ... ] 'parameter.plural': 'parameter.plural': [ ... ] 'suiteCompose': 'suiteCompose': [ ... ] actions: list: ~ save: ~ save-and-list: ~ actions: params: object_actions: delete: ~ </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload