Coder Social home page Coder Social logo

Comments (6)

norberttech avatar norberttech commented on July 20, 2024

Could you also give us exception backtrace and if its possible form of symfony-standard with bug reproduction?

from doctrine-extensions.

JarekW avatar JarekW commented on July 20, 2024

Stack trace:

1. in vendor/fsi/doctrine-extensions/lib/FSi/DoctrineExtensions/Uploadable/UploadableListener.php at line 474 
2. at UploadableListener ->validateExtendedMetadata (object(ClassMetadata), object(ClassMetadata)) in vendor/fsi/doctrine-extensions/lib/FSi/DoctrineExtensions/Mapping/MappedEventSubscriber.php at line 134 
3. at MappedEventSubscriber ->getExtendedMetadata (object(EntityManager), 'Entity\Page') in vendor/fsi/doctrine-extensions-bundle/FSi/Bundle/DoctrineExtensionsBundle/Listener/Uploadable/UploadableListener.php at line 51
4. at UploadableListener ->getExtendedMetadata (object(EntityManager), 'Entity\Page') in vendor/fsi/doctrine-extensions/lib/FSi/DoctrineExtensions/Uploadable/UploadableListener.php at line 244 
5. at UploadableListener ->preFlush (object(PreFlushEventArgs)) in vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php at line 61 
6. at ContainerAwareEventManager ->dispatchEvent ('preFlush', object(PreFlushEventArgs)) in vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php at line 275 
7. at UnitOfWork ->commit (null) in vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php at line 355 
8. at EntityManager ->flush () in vendor/fsi/admin-bundle/FSi/Bundle/AdminBundle/Doctrine/Admin/CRUDElement.php at line 89 
9. at CRUDElement ->save (object(OfferPage)) in vendor/fsi/admin-bundle/FSi/Bundle/AdminBundle/Doctrine/Admin/Context/Request/AbstractFormValidRequestHandler.php at line 78
10. at AbstractFormValidRequestHandler ->action (object(FormEvent)) in vendor/fsi/admin-bundle/FSi/Bundle/AdminBundle/Doctrine/Admin/Context/Request/AbstractFormValidRequestHandler.php at line 51
11. at AbstractFormValidRequestHandler ->handleRequest (object(FormEvent), object(Request)) in vendor/fsi/admin-bundle/FSi/Bundle/AdminBundle/Doctrine/Admin/Context/Edit/Context.php at line 76 
12. at Context ->handleRequest (object(Request)) in vendor/fsi/admin-bundle/FSi/Bundle/AdminBundle/Controller/CRUDController.php at line 103 
13. at CRUDController ->action (object(OfferPageElement), object(Request), 'fsi_admin_crud_edit', '@FSiAdmin/CRUD/edit.html.twig') in vendor/fsi/admin-bundle/FSi/Bundle/AdminBundle/Controller/CRUDController.php at line 74 
14. at CRUDController ->editAction (object(OfferPageElement), object(Request)) 
15. at call_user_func_array (array(object(CRUDController), 'editAction'), array(object(OfferPageElement), object(Request))) in kernel.root_dir/bootstrap.php.cache at line 2841 
16. at HttpKernel ->handleRaw (object(Request), '1') in kernel.root_dir/bootstrap.php.cache at line 2815 
17. at HttpKernel ->handle (object(Request), '1', true) in kernel.root_dir/bootstrap.php.cache at line 2944 
18. at ContainerAwareHttpKernel ->handle (object(Request), '1', true) in kernel.root_dir/bootstrap.php.cache at line 2245 
19. at Kernel ->handle (object(Request)) in web/app_dev.php at line 28 

Form is something like:

class EmployeeType extends AbstractType
{
    public function buildForm(FormBuilderInterface $form, array $options)
    {
        $form->add('file', 'fsi_file');
        return $form;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Employee',
        ));
    }

    public function getName()
    {
        return 'employee_type';
    }
}

from doctrine-extensions.

JarekW avatar JarekW commented on July 20, 2024

i have version v1.0.2

from doctrine-extensions.

chives avatar chives commented on July 20, 2024

After merge of fsi-open/metadata#1 this issue still remains valid but only when field pointed by targetField annotation's attribute is private. This is because of probably too strict validation of metadata done here. This validation fails for inherited class because it does not inherit private properties.

from doctrine-extensions.

szymach avatar szymach commented on July 20, 2024

#79 suggests this is resolved

from doctrine-extensions.

szymach avatar szymach commented on July 20, 2024

Closed by #79

from doctrine-extensions.

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.