GithubHelp home page GithubHelp logo

Comments (28)

ibizaman avatar ibizaman commented on July 17, 2024

no idea of what could be wrong ?

from genemuformbundle.

Nelrann avatar Nelrann commented on July 17, 2024

same problem :(

from genemuformbundle.

ibizaman avatar ibizaman commented on July 17, 2024

well, there's a quick fix : you can override the findAll() function in the repository to return an empty array.
but it's a quite dirty fix ^^

from genemuformbundle.

Nelrann avatar Nelrann commented on July 17, 2024

thx

from genemuformbundle.

genemu avatar genemu commented on July 17, 2024

I know.
Symfony is that manages entities. And it's a default SQL query.
I dont want to write a specific function for aumtocomplete because I would have to check many things (mainly the validation).

But maybe one day I will make a feature.

from genemuformbundle.

ibizaman avatar ibizaman commented on July 17, 2024

Maybe you don't have to write yourself the function. I think we could just extend the entity class and overload the load function that returns an empty array.

from genemuformbundle.

genemu avatar genemu commented on July 17, 2024

I commit a correction and not to make request by default for autocomplete.

from genemuformbundle.

Nelrann avatar Nelrann commented on July 17, 2024

Catchable Fatal Error: Argument 1 passed to Genemu\Bundle\FormBundle\Form\Type\JQueryAutocompleterType::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance of Symfony\Bundle\DoctrineBundle\Registry given

from genemuformbundle.

genemu avatar genemu commented on July 17, 2024

Upgrade Symfony2. /bin/vendors install.
There have been changes September 23, 2011.

I stay on the latest version of Symfony2.
Otherwise you come back on an old commit. But you lose the update bundle.

from genemuformbundle.

genemu avatar genemu commented on July 17, 2024

If you dont update Symfony2, I created a branch all.

git checkout branch all

from genemuformbundle.

Nelrann avatar Nelrann commented on July 17, 2024

ok =)

from genemuformbundle.

ibizaman avatar ibizaman commented on July 17, 2024

and to which commit do we need to stick ?

from genemuformbundle.

naguedo avatar naguedo commented on July 17, 2024

Hi all! I am new to symfony 2 and I have a problem with this Bundle and more precisely with the "datepicker". When I implement 'genemu_jquerydate' in my form I have the following error message:

"Method "datepicker" for object "Symfony\Component\Form\FormView" does not exist in "GenemuFormBundle:Form:div_layout.html.twig" at line 37"

If someone has an idea?
thank you

from genemuformbundle.

genemu avatar genemu commented on July 17, 2024

I corrected.
I forgot to remove an old code.

from genemuformbundle.

naguedo avatar naguedo commented on July 17, 2024

Thank you, but there is a new problem, "MongoDB." I work with mySQL. Is it possible to combine the two? Or it's damn for me? ;)

from genemuformbundle.

genemu avatar genemu commented on July 17, 2024

The two should work together.
I use tests for all environments (Propel + Doctrine2 + MongoDB).

Return to me the error please.

from genemuformbundle.

Nelrann avatar Nelrann commented on July 17, 2024

The service "genemu.form.type.ajaxdocument" has a dependency on a non-existent service "doctrine.odm.mongodb".

from genemuformbundle.

genemu avatar genemu commented on July 17, 2024

Have you added in your AppKernel.php

<?php
public function registerBundles()
{
    $bundles = array(
        //...
        new Symfony\Bundle\DoctrineMongoDBBundle\DoctrineMongoDBBundle(),
    );

    return $bundles;
}

from genemuformbundle.

Nelrann avatar Nelrann commented on July 17, 2024

Yep

php app/console container:debug | grep mongo

doctrine.odm.mongodb.cache n/a alias for doctrine.odm.mongodb.cache.array
doctrine.odm.mongodb.cache.array container Doctrine\Common\Cache\ArrayCache
doctrine.odm.mongodb.default_configuration container Doctrine\ODM\MongoDB\Configuration
doctrine.odm.mongodb.default_connection container Doctrine\MongoDB\Connection
doctrine.odm.mongodb.default_document_manager container Doctrine\ODM\MongoDB\DocumentManager
doctrine.odm.mongodb.default_metadata_cache container Doctrine\Common\Cache\ArrayCache
doctrine.odm.mongodb.document_manager n/a alias for doctrine.odm.mongodb.default_document_manager
doctrine.odm.mongodb.event_manager container Doctrine\Common\EventManager
doctrine.odm.mongodb.logger container Symfony\Bundle\DoctrineMongoDBBundle\Logger\DoctrineMongoDBLogger
doctrine.odm.mongodb.metadata.annotation container Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver
doctrine.odm.mongodb.metadata.annotation_reader n/a alias for annotation_reader
doctrine.odm.mongodb.metadata.chain container Doctrine\ODM\MongoDB\Mapping\Driver\DriverChain
doctrine.odm.mongodb.metadata.xml container Symfony\Bundle\DoctrineMongoDBBundle\Mapping\Driver\XmlDriver
doctrine.odm.mongodb.metadata.yml container Symfony\Bundle\DoctrineMongoDBBundle\Mapping\Driver\YamlDriver
doctrine_odm.mongodb.validator.unique container Symfony\Bundle\DoctrineMongoDBBundle\Validator\Constraints\UniqueValidator
form.type.mongodb_document container Symfony\Bundle\DoctrineMongoDBBundle\Form\Type\DocumentType
form.type_guesser.doctrine.mongodb container Symfony\Bundle\DoctrineMongoDBBundle\Form\DoctrineMongoDBTypeGuesser

from genemuformbundle.

genemu avatar genemu commented on July 17, 2024

Ok, I understand.

Well I'll make a 2.0 branch.

from genemuformbundle.

genemu avatar genemu commented on July 17, 2024

For those who use v2.0.5 or v2.0.6.

You must use the branch 2.0 to this bundle.

from genemuformbundle.

ibizaman avatar ibizaman commented on July 17, 2024

Well, this is my debs :

[symfony]                                                      
    git=http://github.com/symfony/symfony.git         
    version=v2.0.6 

[twig]                                                         
    git=http://github.com/fabpot/Twig.git  
    version=v1.1.2      

[monolog]                 
    git=http://github.com/Seldaek/monolog.git                
    version=1.0.2                                   

[doctrine-common] 
    git=http://github.com/doctrine/common.git 
    version=2.1.2                                         

[doctrine-dbal] 
    git=http://github.com/doctrine/dbal.git 
    version=2.1.3                                  

[doctrine]        
    git=http://github.com/doctrine/doctrine2.git 
    version=2.1.2 

[swiftmailer]                                          
    git=http://github.com/swiftmailer/swiftmailer.git      
    version=v4.1.3 

[assetic]                                                     
    git=http://github.com/kriswallsmith/assetic.git      
    version=v1.0.2 

[twig-extensions]                                       
    git=http://github.com/fabpot/Twig-extensions.git 

[metadata]                 
    git=http://github.com/schmittjoh/metadata.git      
    version=1.0.0                            

[SensioFrameworkExtraBundle] 
    git=http://github.com/sensio/SensioFrameworkExtraBundle.git
    target=/bundles/Sensio/Bundle/FrameworkExtraBundle

[JMSSecurityExtraBundle]                                    
    git=http://github.com/schmittjoh/JMSSecurityExtraBundle.git
    target=/bundles/JMS/SecurityExtraBundle
    version=origin/1.0.x

[SensioDistributionBundle]                 
    git=http://github.com/sensio/SensioDistributionBundle.git
    target=/bundles/Sensio/Bundle/DistributionBundle
    version=origin/1.0

[SensioGeneratorBundle]
    git=http://github.com/sensio/SensioGeneratorBundle.git
    target=/bundles/Sensio/Bundle/GeneratorBundle

[AsseticBundle]
    git=http://github.com/symfony/AsseticBundle.git
    target=/bundles/Symfony/Bundle/AsseticBundle
    version=v1.0.1


[DoctrineExtensions]
    git=git://github.com/l3pp4rd/DoctrineExtensions.git
    target=bundles/Doctrine/Gedmo/gedmo-doctrine-extensions

[DoctrineExtensionsBundles]
    git=git://github.com/stof/StofDoctrineExtensionsBundle.git
    target=bundles/Doctrine/Stof/DoctrineExtensionsBundle

[WebProfilerExtraBundle]
    git=git://github.com/Elao/WebProfilerExtraBundle.git
    target=bundles/Elao/WebProfilerExtraBundle

[CraueTwigExtensionsBundle]
    git=git://github.com/craue/TwigExtensionsBundle.git
    target=bundles/Craue/TwigExtensionsBundle

[doctrine-fixtures]
    git=http://github.com/doctrine/data-fixtures.git

[DoctrineFixturesBundle]
    git=http://github.com/symfony/DoctrineFixturesBundle.git
    target=/bundles/Symfony/Bundle/DoctrineFixturesBundle

[GenemuFormBundle]
    git=http://github.com/genemu/GenemuFormBundle.git
    target=bundles/Genemu/Bundle/FormBundle
    version=origin/2.0

and my deps.lock

symfony e3149318f522c14717041db3ff6b7e64421ce033
twig 396435ecd05556adb0a8bd05b14641cb4f8a8aa5
monolog b704c49a3051536f67f2d39f13568f74615b9922
doctrine-common e4a48faef35752ba3cd1d261316313e9c09e0c81    
doctrine-dbal 5084e6bf5ded98b01feb847935d40e5e260b5025
doctrine ca289bf1ea6223d5894b1f6ec86fc2759e458ccc
swiftmailer 8c3165691e36302405926abbae7526549db8b899
assetic f829ad23d23c87480151a21faad49fefe7c09e5d     
twig-extensions eba4f5d572bec05c72a47bbd73ba0a3330cf8f54
metadata 8717ad2a5689480765d9ffafe925cd8a2457e582
SensioFrameworkExtraBundle b6565d32d71325be1f56943a8758b18f5999de8c
JMSSecurityExtraBundle b8b7eb294ed83d83ca7260ac018e701f08003538
SensioDistributionBundle 2082cb99d408fd89243059c6eff866347ec00bbe
SensioGeneratorBundle 88ecf05691825c81b6a19ca6e2dc1849f1a5dcd4
AsseticBundle 41b5913b5086a0909af92adcb4a6005ee0051b16
CraueTwigExtensionsBundle 3c249f1ff260bfadaccbc7dc97eb4f33aa7526ae
DoctrineExtensionsBundles 5dd2ea308aa23d934b6c50551853fc3d81bffae9

But I have the same error as toinouu :

ServiceNotFoundException: The service "genemu.form.type.ajaxdocument" has a dependency on a non-existent service "doctrine.odm.mongodb.document_manager".

Edit : if this can help you, this commit works fine for me : 917643e

from genemuformbundle.

genemu avatar genemu commented on July 17, 2024

I commit a correction. Default is Doctrine and Propel.
If it's used MongoDB must add a parameter aditional.

// app/config/config.yml

genemu_form:
    jqueryautocompleter:
        mongodb: true

from genemuformbundle.

ibizaman avatar ibizaman commented on July 17, 2024

In my case it is not used, my config file is:

genemu_form: ~

from genemuformbundle.

genemu avatar genemu commented on July 17, 2024

OK, get the update from the last commit.

from genemuformbundle.

ibizaman avatar ibizaman commented on July 17, 2024

working fine now, thanks !

from genemuformbundle.

genemu avatar genemu commented on July 17, 2024

OK good.

from genemuformbundle.

genemu avatar genemu commented on July 17, 2024

Fix

from genemuformbundle.

Related Issues (20)

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.