iambrosi / ismaambrosigeneratorbundle Goto Github PK
View Code? Open in Web Editor NEWGenerates Symfony2 documents, forms and CRUD for MongoDB documents
License: MIT License
Generates Symfony2 documents, forms and CRUD for MongoDB documents
License: MIT License
It would be great to allow users to override skeleton templates, so they can tweak the generated code, such as action methods, phpDocs, etc. Sensio's bundle has this feature since version 2.3.
Me again ;-)
Seems that when using yml as configuration format the provided route prefix is not used.
It is applied in route names but not in the yml file as pattern
As of Symfony 2.7, overriding the method setDefaultOptions
in Form type classes has been deprecated in favor of the new method configureOptions
.
We need to generate this new method if is available in the abstract class AbstractType.
The last commit of SensioGeneratorBundle has change the name of the DialogHelper to QuestionHelper. Can you edit your bundle?
Thanks for your nice bundle.
When generating CRUD, a semantical error is generated:
[Semantical Error] The annotation "@template" in method ...\Controller\LunchController::indexAction() was never imported. Did you maybe forget to add a "use" statement for this annotation?
Shouldn't you add "use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;" in the generator ?
This may end up being a major rewrite of this bundle, but in looking through, I notice a lot of missing functionality (ex: template overrides) available in its pseudo-parent project, SensioGeneratorBundle. I believe this is because this bundle was created based on a much earlier version of Sensio's.
It'd be great to see a v3 release with some of this functionality ported over. I've forked this repo and hope to start work on that soon, depending on how things go.
it doesn't work on symfony 3 without modifying the controller, and the generated views
When we have code like this:
trait A {
/**
* @var string
* @MongoDB\String
*/
protected $foo;
public function getFoo(){
return $this->foo;
}
public function setFoo($foo){
$this->foo = $foo;
return $this;
}
}
and class like this:
class B {
use A;
}
Then after running:
php app/console doctrine:mongodb:generate:documents Bundle
we end up with code like this:
class B {
use A;
protected $foo;
public function getFoo(){
return $this->foo;
}
public function setFoo($foo){
$this->foo = $foo;
return $this;
}
}
After refreshing the site, we end up with exception about redeclaring functions.
I have to manually delete the methods and properties from the class file.
Any ideas on how to fix this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.