Questions tagged [stofdoctrineextensions]

81 questions
12
votes
3 answers

Doctrine Extensions Sortable not working correctly when changing position by more than 1

Im using Symfony 3.1 + Doctrine GEDMO extensions (via StofDoctrineExtensionsBundle). I've set my entity to have Sortable behavior:
OKE
  • 364
  • 1
  • 5
  • 13
11
votes
1 answer

How to log an entity that has collections?

I want to log all changes of an entity. I looked into Loggable doctrine extension as provided by the StofDoctrineExtensionsBundle. I got it working for fields that store simple data, e.g. string and integers. But my entity also has ManyToMany…
11
votes
2 answers

StofDoctrineExtensionsBundle softdelete - How do I use it?

My boss installed this bundle for the softdelete filter, but the documentation is beyond sparse. How do I use this in my delete queries?
Major Productions
  • 5,914
  • 13
  • 70
  • 149
9
votes
2 answers

Symfony2 - translatable field - The class 'Gedmo\Translatable\Entity\Translation' was not found in the chain configured namespaces

I'm trying to translate some fields of my entity and I have the following error when I'm try create an object...
David
  • 321
  • 2
  • 11
9
votes
3 answers

Gedmo\Loggable logs data that doesn't have changed

I'm using Symfony2.2 with StofDoctrineExtensionsBundle (and so Gedmo DoctrineExtensions). I've a simple entity /** * @ORM\Entity * @Gedmo\Loggable * @ORM\Table(name="person") */ class Person { /** * @ORM\Id *…
7
votes
4 answers

Doctrine blameable extension 'on change' doesn't work

I'm on symfony 2.6.3 with stof Doctrine extension. TimeStampable and SoftDeletable work well. Also Blameable "on create" and "on update" are working well too: /** * @var User $createdBy * * @Gedmo\Blameable(on="create") *…
Chuck Norris
  • 1,125
  • 1
  • 12
  • 28
7
votes
4 answers

Symfony 2 - Generate Slugs with Gedmo\Slug

I have just installed the doctrine extensions to use Sluggable. I make this : composer.json "stof/doctrine-extensions-bundle": "1.2.*@dev" AppKernel.php new…
Johann
  • 127
  • 1
  • 4
  • 7
5
votes
2 answers

Doctrine 2 nested set - retrieve full tree in single query

I'm using stof/StofDoctrineExtensionsBundle (Bundle wrapper for Atlantic18/DoctrineExtensions) to implement a Nested Set (tree) entity. The entity is configured and working, but I can't figure out how to retrieve all root notes with all of their…
5
votes
1 answer

Symfony2 upload file with stof uploadable extension

i'm trying to set up a form with file upload under Symfony2 with the uploadable extension (stof/doctrine) here are my entities club
Chuck Norris
  • 1,125
  • 1
  • 12
  • 28
5
votes
3 answers

Generating doctrine slugs manually

I'm using sluggable behavior in my Symfony2 project, but now I would like to make many slugs for one page, based on different texts (current title, old title(s), users text from form input), and keep it in another table. And my question is - how to…
Radzikowski
  • 2,377
  • 4
  • 27
  • 39
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

Stof Doctrine extension:Tree lvl doesn't update

I'm asking this question here because I'm having no answer on github. I'm using the nested tree annotation and supposedly when one save a $food object like that: $food->setParent($vegetables); the update of the parent, lvl and root is done…
Eagle1
  • 810
  • 2
  • 12
  • 30
4
votes
2 answers

gedmo_translatable vs gedmo_translator - StofDoctrineExtensionsBundle - Symfony2

What are the differences between these two extensions in StofDoctrineExtensionsBundle. gedmo_translatable gedmo_translator
d0001
  • 2,162
  • 3
  • 20
  • 46
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
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…
1
2 3 4 5 6