Code Monkey home page Code Monkey logo

ismaambrosigeneratorbundle's People

Contributors

eymengunay avatar iambrosi avatar peshi avatar webinfopro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ismaambrosigeneratorbundle's Issues

CRUD + yml

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

The annotation "@Template" was never imported.

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 ?

Update Bundle to Port Later SensioGeneratorBundle Updates

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.

symfony 3

it doesn't work on symfony 3 without modifying the controller, and the generated views

When Document is using PHP Trais, the fields from Trait are copied to the document class

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.