Git Product home page Git Product logo

crudgeneratorbundle's People

Contributors

acidjames avatar bieli avatar cachorios avatar codevalar avatar dyktek avatar gonzaloalonsod avatar jordillonch avatar l-vo avatar luizsoliveira avatar magi2c avatar ricardclau avatar sp-roger-clotet avatar ternel 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  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  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  avatar  avatar

Watchers

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

crudgeneratorbundle's Issues

Bootstrap + filters

Hola,

Estoy provando el bundle, he cargado el css de bootstrap en base.html.twig, pero en el list view no lo veo con el estilo bootstrap ni me salen los filtros? es normal?

Gracias

Saludos

Menu placement???

Is there any way to place a menu in generated CRUDs? This is intended to be a starter for administration areas but in main layout there is:

<div class="container">

    {% for type, flashMessages in app.session.flashbag.all() %}
        {% for flashMessage in flashMessages %}
            
{{ flashMessage|trans({}, 'JordiLlonchCrudGeneratorBundle') }}
{% endfor %} {% endfor %} {% block page %}{% endblock %} </div>

So maybe a {% block menu %}{% endblock %} could be added on top of flash messages

What are your thoughts on that?

Composer.lock in Bundle

Hi,

apparently, it is not always recommended to commit composer.lock to bundles as stated here :
https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file

I'm posting this issue as this bundle has some security issues with the composer.lock, it's not an important security issue but still has to do with how the composer.lock is commited to this repo.

From Sensio Security Advisory:

Vulnerability Report

Caution
The checker detected 2 package(s) that have known* vulnerabilities in your project. We recommend you to check the related security advisories and upgrade these dependencies.
doctrine/orm (2.4.x-dev)

Security Misconfiguration Vulnerability in various Doctrine projects — CVE-2015-5723
symfony/symfony (2.5.x-dev)

CVE-2016-1902: SecureRandom's fallback not secure when OpenSSL fails — CVE-2016-1902
Unsafe methods in the Request class — CVE-2015-2309
CVE-2015-4050: ESI unauthorized access — CVE-2015-4050
Code injection in the way Symfony implements translation caching in FrameworkBundle — CVE-2014-4931
CSRF vulnerability in the Web Profiler — CVE-2014-6072
CVE-2016-4423: Large username storage in session — CVE-2016-4423
Esi Code Injection — CVE-2015-2308
CVE-2015-8125: Potential Remote Timing Attack Vulnerability in Security Remember-Me Service — CVE-2015-8125
Security issue when parsing the Authorization header — CVE-2014-6061
Denial of service with a malicious HTTP Host header — CVE-2014-5244
CVE-2015-8124: Session Fixation in the "Remember Me" Login Feature — CVE-2015-8124
Direct access of ESI URLs behind a trusted proxy — CVE-2014-5245

I will post a PR if you guys are okay with this

Symfony 2.6

Hi,

any reason to have < 2.6-dev in composer?
Need to use this bundle for 2.6+

Symfony 2.7.2 Error

There is an error in JordiLlonchCrudCommand.php [61]
Where $this->getDialogHelper() is, it is no longer a part of the Sensio Generator Bundle and should be replaced with
$dialog = $this->getQuestionHelper();

Just thought I would let you know.

Dependency error

I'm following your steps in order to install the bundle but composer throws an error:

Problem 1
- jordillonch/crud-generator dev-master requires pagerfanta/pagerfanta dev-master -> no matching package found.
- jordillonch/crud-generator dev-master requires pagerfanta/pagerfanta dev-master -> no matching package found.
- Installation request for jordillonch/crud-generator dev-master -> satisfiable by jordillonch/crud-generator dev-master.

What am I doing wrong?
Thanks

update lexik/form-filter-bundle version

lexik/form-filter-bundle has some nice features in recent versions i'd like to use
doesn't look to difficult to upgrade, maybe even just changing the required version should do the trick.

Filter with relation OneToMany : it's possible ?

//Xyzbundle/Form/ProductFilterType.php

class ProductFilterType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('id', 'filter_number_range')
            .......
            ->add('category', 'filter_text')//### from Category entity  ####
      .....
   }
}

return

Semantical Error] line 0, col 62 near 'category': Error: Invalid PathExpression. Must be a StateFieldPathExpression.

Issue in Symfony 2.8

I am getting this error when trying to create the CRUD:

[Symfony\Component\Debug\Exception\ContextErrorException]
Warning: Missing argument 2 for Sensio\Bundle\GeneratorBundle\Generator\Doc
trineCrudGenerator::__construct(), called in /var/www/html/pruebas/vendor/j
ordillonch/crud-generator/JordiLlonch/Bundle/CrudGeneratorBundle/Command/Jo
rdiLlonchCrudCommand.php on line 38 and defined

Symfony 2.2.* support

Are there any limitations to support only 2.1 instead of 2.1 and 2.2? Would be great to install it for 2.2 too.

Require lexik/form-filter-bundle

I've upgraded my Symfony 2.7 project to Symfony 2.8. No I have a lot of deprecations. Most of them come from lexik/form-filter-bundle. I use version 3.0 of lexik/form-filter-bundle. I want to update that bundle to version 5.0 (the next stable version). But now the problem is that jordillonch/CrudGeneratorBundle require version 3, so I can update it to version 5. What should I do? Please help?

Interface changes in SensioGeneratorBundle break this bundle in 2.2.x

When installing, I get

Runtime Notice: Declaration of JordiLlonch\Bundle\CrudGeneratorBundle\Command\JordiLlonchCrudCommand::getFormGenerator() should be compatible with Sensio\Bundle\GeneratorBundle\Command\GenerateDoctrineCrudCommand::getFormGenerator($bundle = NULL)

The issue is the below commit to SensioGeneratorBundle added the optional parameter ($bundle = null) in several methods.

You can see the Sensio commit that caused the issue.

This should be an easy fix. I'm not too familiar with Github yet or I'd submit a PR.

filters design in list view

Hi,

I'm having problems displaying fields in the filters list view. It appears it is not using bootstrap ?

Here is what it looks like :

capture d cran 2014-03-27 16 40 25

This is my twig configuration :

# Twig Configuration
twig:
    debug:            "%kernel.debug%"
    strict_variables: "%kernel.debug%"
    form:
        resources:
            - LexikFormFilterBundle:Form:form_div_layout.html.twig

Thanks in advance,

Invalid handler type "console" given for handler "console"

After your latest changes:

The following error occurs: (see further for my version info)

InvalidArgumentException: Invalid handler type "console" given for handler "console"
in /vagrant/www/vendor/symfony/monolog-bundle/Symfony/Bundle/MonologBundle/DependencyInjection/MonologExtension.php line 325
at MonologExtension->buildHandler(object(ContainerBuilder), 'console', array('type' => 'console', 'bubble' => false, 'priority' => '0', 'level' => 'DEBUG', 'path' => '%kernel.logs_dir%/%kernel.environment%.log', 'ident' => false, 'logopts' => '1', 'facility' => 'user', 'max_files' => '0', 'action_level' => 'WARNING', 'activation_strategy' => null, 'stop_buffering' => true, 'buffer_size' => '0', 'title' => null, 'members' => array(), 'to_email' => array(), 'content_type' => null, 'mailer' => 'mailer')) in /vagrant/www/vendor/symfony/monolog-bundle/Symfony/Bundle/MonologBundle/DependencyInjection/MonologExtension.php line 52
at MonologExtension->load(array(array('handlers' => array('main' => array('type' => 'stream', 'path' => '/vagrant/www/app/logs/dev.log', 'level' => 'debug'), 'console' => array('type' => 'console', 'bubble' => false)))), object(ContainerBuilder)) in /vagrant/www/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationPass.php line 50
at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in /vagrant/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/MergeExtensionConfigurationPass.php line 39
at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in /vagrant/www/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php line 119
at Compiler->compile(object(ContainerBuilder)) in /vagrant/www/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php line 629
at ContainerBuilder->compile() in /vagrant/www/app/bootstrap.php.cache line 2366
at Kernel->initializeContainer() in /vagrant/www/app/bootstrap.php.cache line 2146
at Kernel->boot() in /vagrant/www/app/bootstrap.php.cache line 2177
at Kernel->handle(object(Request)) in /vagrant/www/web/app_dev.php line 28

twig:
form:
resources:
- LexikFormFilterBundle:Form:form_div_layout.html.twig

        new Lexik\Bundle\FormFilterBundle\LexikFormFilterBundle(),
        new JordiLlonch\Bundle\CrudGeneratorBundle\JordiLlonchCrudGeneratorBundle(),

{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The "Symfony Standard Edition" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "~2.3",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.3",
"sensio/distribution-bundle": "~2.3",
"sensio/framework-extra-bundle": "~2.3",
"sensio/generator-bundle": "~2.3",
"incenteev/composer-parameter-handler": "~2.0",
"jordillonch/crud-generator": "dev-master"
},
"scripts": {
"post-install-cmd": [
"Incenteev\ParameterHandler\ScriptHandler::buildParameters",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Incenteev\ParameterHandler\ScriptHandler::buildParameters",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile"
]
},
"config": {
"bin-dir": "bin"
},
"minimum-stability": "dev",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.4-dev"
}
}
}

Issue with boolean type

Hi!, very nice bundle!, thank you!.

I've spotted an issue with boolean data type, in which you can save a form if the field is "nullable: false".

I was expecting it to store 0 when checkbox is empty and 1 when it's checked, but it seems it defaults to null & 1, and when the field is not nullable then you can't save the form without checking the field.

Also, would be a nice feature if it showed a "checked" icon on the index/list action for boolean fields just like Symfony1's admin generator did 👍

I'm using Symfony 2.3.23 & CrudGeneratorBundle 2.3.x-dev

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.