Questions tagged [stofdoctrineextensions]

81 questions
1
vote
2 answers

DoctrineExtensions - Tree object class: MyBundle\Entity\Category must have tree metadata at this point

I want to use the tree feature of DoctrineExtensions for my Symfony2 application. But I get this error : Tree object class: MyBundle\Entity\Category must have tree metadata at this point. Symfony : v2.5.3 Doctrine Common : v2.4.2 DoctrineExtensions…
1
vote
1 answer

Timestampable does not work with ORM and PostgreSQL database

I added support for Timestampable in my entity as follow: use Gedmo\Timestampable\Traits\TimestampableEntity;. I have updated my DB by running doctrine:schema:update --force but any time I try to insert a new record I get this…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
1
vote
0 answers

'StofDoctrineExtensionsBundle' findTranslations not found my default Local Translation

My problem is simply... or not.... This is my config.yml for the bundle stof_doctrine_extensions: default_locale: fr translation_fallback: true orm: default: translatable: true When i use my entity translation repository with…
Meniloss
  • 19
  • 3
0
votes
1 answer

Symfony6- timestampable Doctrine Extension : trait works but not attributes

i try to make timestampable entity with StofDoctrineExtension. Unfortunatly i found that using trait works perfectly, but not using attributes. Could someone says me what i does wrong ? this works :
0
votes
0 answers

Gedmo Sortable with multiple entity

I have an entity with Sortable/position attribute, when I persist multiple entity with specific position with Bulk I have a strange behavior : I have a list of 5 entities already persist. I try to persist new set of entity with specific position…
0
votes
0 answers

Loggable doesn't write in the table

I want to use loogable extension, but it doesn't write anything in ext_log_enties table. I'm using symfony 5.4 and Api-platform 2.6.8 in my project. My configuration: doctrine.yaml doctrine: dbal: ... orm: …
0
votes
1 answer

How to use DoctrineExtensions Blameable from the command line?

I am using DoctrineExtensions Blameable to store the user who created an entity, and when making a HTTP request with JWTs, all is working as desired.
user1032531
  • 24,767
  • 68
  • 217
  • 387
0
votes
1 answer

Symfony 5 project not installing with stof-doctrine-extensions

I try to create a new Symfony 5 project with doctrine extensions but it fails. Here is the sequence : $ symfony new myProject --full $ cd myProject $ composer require stof/doctrine-extensions-bundle ( as indicated in…
user1077915
  • 828
  • 1
  • 12
  • 26
0
votes
1 answer

The annotation "@Gedmo\Mapping\Annotation\Sortable does not exist, or could not be auto-loaded

I use "stof/doctrine-extensions-bundle": "v1.3.0", config.yml stof_doctrine_extensions: default_locale: %locale% orm: default: tree: ~ timestampable: ~ sortable: ~ sluggable: ~ …
Developer
  • 2,731
  • 2
  • 41
  • 71
0
votes
1 answer

Symfony - orphanRemoval and Stof Softdeleteable

I have a entity, User and User can has many phone number, so I have field: User.numbers and entity Number UserType: ->add('numbers', CollectionType::class, array( 'entry_type' => NumberType::class, 'by_reference' => false, 'allow_add' =>…
Kamil P
  • 782
  • 1
  • 12
  • 29
0
votes
0 answers

Symfony Gedmo Translatable and YAML configuration for generating entities

is it possible to use in a Symfony project Gedmo Doctrine Extension Translatable with YAML configuration and to generate the entities with php bin/console doctrine:generate:entities ? I tried the StofDoctrineExtensionsBundle, I tried Gedmo on its…
0
votes
1 answer

How to use Gedmo nested tree for storing multiple trees in one single table?

I have a table which store a tree for each username. My entity looks like this: /** * Confsaves * @Gedmo\Tree(type="nested") * @ORM\Table(name="confsaves") *@ORM\Entity(repositoryClass="Gedmo\Tree\Entity\Repository\NestedTreeRepository") */ class…
Etienne
  • 408
  • 2
  • 9
  • 28
0
votes
1 answer

Argument 2 error while configuring Gedmo tree repoository with traits using Symony3 and stofDoctrineExtensionsBundle

I am getting error: Type error: Argument 2 passed to AppBundle\Repository\CategoryRepository::__construct() must be an instance of AppBundle\Repository\ClassMetadata, instance of Doctrine\ORM\Mapping\ClassMetadata given, called in…
Rikijs
  • 728
  • 1
  • 12
  • 48
0
votes
1 answer

Gedmo Tree getPath Error: Node is not related to this repository 500 Internal Server Error - InvalidArgumentException

I am getting error: Node is not related to this repository 500 Internal Server Error - InvalidArgumentException UPDATE 1: it does not matter if I set up tree repository with traits or extend abstract repository the error is the same. UPDATE 2: Full…
Rikijs
  • 728
  • 1
  • 12
  • 48
0
votes
1 answer

Symfony2 / Doctrine 2 : Sluggable extension : Access slug value during onFlush or postUpdate Event

I have a Restaurant entity with a One-To-One relationship with an ImageRestaurant entity. I can edit both entities using a single form (ImageRestauranType is embedded in RestaurantType). Restaurant entity has a slug, which is generated thanks to the…
Cruz
  • 695
  • 8
  • 21