Questions tagged [doctrine-extensions]

The extensions are adding functionalities to the facilities provided by Doctrine, a DB abstraction layer and Object Relational Mapper for PHP.

The extensions are adding functionalities to the facilities provided by Doctrine, a DB abstraction layer and Object Relational Mapper for PHP. Through the ORM facilities, it allows to have automatic operations taking place during certain events (updating database, etc...)

It is setup as a bundle for Symfony 2 and as a module for ZendFramework, at least.

177 questions
5
votes
2 answers

How to fix "This repository can be attached only to ORM sortable listener" error in Gedmo sortable?

When usieing StofDoctrineExtensions (which is a Symfony2 port of Gedmo Doctrine Extensions) Sortable behaviour I kept on getting this error: This repository can be attached only to ORM sortable listener Since I could not easily find the answer in…
ioleo
  • 4,697
  • 6
  • 48
  • 60
5
votes
1 answer

How to configure doctrine extensions in Zend Framework 2?

I have added this line to my composer.json: "gedmo/doctrine-extensions": "dev-master" And this is inside my module's module.config.php: 'doctrine' => array( 'driver' => array( __NAMESPACE__ . '_driver' => array( 'class' =>…
Richard Knop
  • 81,041
  • 149
  • 392
  • 552
4
votes
2 answers

Installing Doctrine extensions in a Symfony 2 project causes Fatal Error

Here is the problem : I don't succeed to install doctrine extensions with symphony 2, especially timestampable. I follow this tutorial How I proceed : I add this lines in deps file : [gedmo-doctrine-extensions] …
4
votes
1 answer

What are Personal Translations in Gedmo Doctrine Extensions?

In the Translatable behaviour of the Gedmo Doctrine Extensions, it has instructions on "Personal Translations". Could someone clarify what personal translations are?
Darryl Hein
  • 142,451
  • 95
  • 218
  • 261
4
votes
1 answer

Check if a translation exists for a field in DoctrineBehaviors

I have a problem with the DoctrineBehaviors bundle. I'm trying to get the translation for a specific language (French) for an entity that doesn't have the French translation. It returns the fallback language, that is OK for the frontend, but I need…
David
  • 321
  • 2
  • 11
4
votes
1 answer

Doctrine uploadable extension in Symfony

I read this doc in order to understand how the doctrine uploadable extension works so I can use it in my Symfony projects. The problem is at the usage example, where I see an object called $listener and I really can not figure out where does it come…
Michael
  • 4,786
  • 11
  • 45
  • 68
4
votes
2 answers

Symfony2 Doctrine SoftDeletable and JMSSerializerBundle not working together

I'm using the Gedmo SoftDeletable filter for Symfony2 and Doctrine (https://github.com/l3pp4rd/DoctrineExtensions/blob/master/doc/softdeleteable.md) I'm also using the JMSSerializerBundle to serialize reponses to JSON for my REST API. As soon as I…
Simon
  • 1,643
  • 7
  • 30
  • 61
3
votes
1 answer

Symfony vich uploader and doctrine loggable extension problem?

I am using this two libraries to create an entity that has a picture using vich/uploader-bundle and I am logging entity changes history using the loggable doctrine extension provided from stof/doctrine-extensions-bundle which provides the extension…
Simeon Kolev
  • 606
  • 1
  • 4
  • 17
3
votes
1 answer

PHP Timestampable - update and create for one single field, possible?

I have two fields in my entity - $creationDate and $lastUpdate, which I am updating with the help of: @Gedmo\Mapping\Annotation\Timestampable(on="create") and respectively. @Gedmo\Mapping\Annotation\Timestampable(on="update") However, I would…
3
votes
0 answers

Is Sortable compatible with Symfony 4.2 (using stof/doctrineExtensionsBundle)?

I am using stof/doctrineExtensionsBundle v1.3 with Symfony v4.2.4, having some trouble setting up the Sortable extension. I have installed the bundle using Symfony flex: composer require stof/doctrine-extensions-bundle After that I activated…
3
votes
3 answers

Doctrine Sluggable - Column 'slug' cannot be null

I am using Doctrine, with DoctrineExtensions via StofDoctrineExtensionsBundle to generate slugs automatically using "Doctrine Extensions Sluggable" behavior. The listener seems to be registred properly. Entity field is also marked as sluggable.…
3
votes
1 answer

Slug with multiple relationship

I have three entities, let's say A, B and C. A owns two ManyToOne relationships to B and to C. I want to generate a slug for A, composed of field A.a, B.b and C.c. For the moment, I could generate a slug with A.a and B.b, with this code: Class…
3
votes
2 answers

How to disable a doctrine filter in a param converter

I'm using the doctrine softdeleteable extension on a project and have my controller action set up as such. /** * @Route("address/{id}/") * @Method("GET") * @ParamConverter("address", class="MyBundle:Address") * @Security("is_granted('view',…
Derick F
  • 2,749
  • 3
  • 20
  • 30
3
votes
1 answer

Symfony2/Doctrine: Get the field(s) that changed after "Loggable" entity changed

In a Symfony2 project I'm using the Loggable Doctrine Extension. I saw that there is a LoggableListener. Is there indeed an event that gets fired when a (loggable) field in a loggable entity changes? If it is so, is there a way to get the list of…
Sergio Negri
  • 2,023
  • 2
  • 16
  • 38
3
votes
1 answer

translation-form with default entity translations not found

i try setup translations form http://a2lix.fr/bundles/translation-form/ and https://github.com/Atlantic18/DoctrineExtensions/blob/master/doc/translatable.md#translatable-entity-example composer.json "a2lix/translation-form-bundle":…
Developer
  • 2,731
  • 2
  • 41
  • 71
1
2
3
11 12