Comments (6)
Could you also give us exception backtrace and if its possible form of symfony-standard with bug reproduction?
from doctrine-extensions.
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.
i have version v1.0.2
from doctrine-extensions.
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.
#79 suggests this is resolved
from doctrine-extensions.
Closed by #79
from doctrine-extensions.
Related Issues (20)
- Clearing uploadable field does not actually clear it
- Utilize PHP 7.1 functionalities
- Uploading empty SplFileInfo throws exception
- Error with translations using joined table inheritance
- Branches HOT 1
- All public methods of FSi\DoctrineExtensions\Translatable\Query\QueryBuilder should return $this
- copying default object translation as an annotation option HOT 2
- Translation fails if relation is handled by the translation entity
- Get and set files property through reflection
- Get object identifier from metadata, not reflection
- Common interface for files HOT 2
- [Gedmo] Value from default language always used for slug creation
- Allow setting translations via a single method HOT 2
- Create translation on flush instead on preFlush
- YAML/XML driver mappings for translatable options HOT 1
- Better validation of metadata in the listener
- Merge metadata and property observer components
- Simplify library logic
- Resolve Scrutinizer issues
- Require doctrine 2.5 and remove custom ObjectHydrator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doctrine-extensions.