Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
64 views

I need some help regarding the usage of Doctrine Translatable (from Doctrine Extensions) Context I use Doctrine Translatable to translate an entity, and my use-case follows closely this example from ...
Diplodoco's user avatar
  • 433
0 votes
2 answers
108 views

I've created an entity with a closure table and a repository alongside. I'm trying a basic example of building a tree but am seeing the error Cannot use object of type App\Entity\Discussion\Comment as ...
Adam Roberts's user avatar
0 votes
0 answers
29 views

Does anyone have any information on how to turn on softdeleteable for MongoDB Documents in Symfony? I see the classes are present in the library, and I tried to turn them on, but everything ...
Jim Glenn's user avatar
1 vote
1 answer
233 views

I am using Symfony 6 + API Platform + Gedmo Translatable. Updating / posting items is working perfectly and storing the translations correctly. Also getting a collection in the correct language is ...
RedBeard's user avatar
  • 149
0 votes
1 answer
581 views

I'm on a fresh install of API Platform (v3.2.7) and I'm using Gedmo\Timestampable\Traits\TimestampableEntity This is my entity (Greeting example) <?php namespace App\Entity; use ApiPlatform\...
Matías Cánepa's user avatar
2 votes
0 answers
160 views

I am using API Platform 3.0. In my application, I have an entity that includes a 'title' field. I'm looking to sort the entities by this 'title' field in a case-insensitive manner. I currently have ...
DurandA's user avatar
  • 1,718
0 votes
1 answer
547 views

Autocomplete choice labels don't translate Platform is Symfony 6.3, with UX Autocomplete 2.9 My issue My issue: I have a Symfony UX Autocomplete form field, the choice_labels are stored in translated ...
Julian Koster's user avatar
0 votes
1 answer
92 views

I'm binding entity manager in the container like this with the configurations including the DATE extension function ....... Config::class => create(Config::class)-&...
Zuby's user avatar
  • 53
0 votes
0 answers
419 views

I get my data into Vue Js app with API platform mechanism called - “properties[]”. My URL look like “http://address/resource?properties[subresources]=id. I have custom doctrine extension to checking ...
Adrian Wolf's user avatar
0 votes
1 answer
2k views

I'm having issues with soft delete from "stof/doctrine-extensions-bundle" package. I'm running Symfony 5.4. SoftDelete functionality actually works fine, but I can't set up the ...
bici's user avatar
  • 57
1 vote
1 answer
234 views

I'm using API Platform 3 and Gedmo's Softdeleteable Extension. For my entities, I'm using Extensions to add $queryBuilder->andWhere('o.deletedAt IS NULL') to all queries. This is working fine, but ...
Stephan Vierkant's user avatar
1 vote
1 answer
1k views

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. <?php namespace App\Entity; use Doctrine\ORM\...
user1032531's user avatar
  • 26.5k
0 votes
0 answers
452 views

I have run a composer update on my Symfony 4.4 project and ran into an issue that will run throughout my project. The following line: $this->stadiumEntity = $this->getDoctrine()->...
crmpicco's user avatar
  • 17.3k
-1 votes
1 answer
940 views

I am setting up a test environment for unit tests, following Symfony's Test-Guide. However each time I deploy the test-DB the final tables look slightly different than the originals from the ...
Jonathan's user avatar
  • 2,107
1 vote
0 answers
251 views

It's been days that I'm trying to achieve the following : Add a deletedAt property on every entities by default without having to use a trait, or adding inheritance (or mapped superclasses) to all of ...
Lama's user avatar
  • 136
0 votes
1 answer
665 views

I'm trying to use slugs for my symfony project. The first thing that I wanted to do is to install StofDoctrineExtensionsBundle. I tried to follow the tutorial in symfony website https://symfony.com/...
Selim Mokni's user avatar
0 votes
2 answers
421 views

In the down() function of my migration i have the following line: $table->integer('placeholder')->change(); Here I try to change the column type 'number' from string(750 characters) to integer....
Bowis's user avatar
  • 682
0 votes
1 answer
974 views

I'm trying to add a feature of multi language to my application using API Plateform and ReactJS. I've installed StofDoctrineExtensionsBundle, I want to use the extension Translatable. I send the local(...
Naruto Uzumaki's user avatar
0 votes
0 answers
364 views

I have followed the docs: https://github.com/Atlantic18/DoctrineExtensions/blob/v2.4.x/doc/tree.md#materialized-path I am getting the following error: An exception occurred while executing 'UPDATE ...
Alex.Barylski's user avatar
2 votes
2 answers
2k views

I'm using ApiPlatform and Symfony5 I've implemented softdelete on an entity User This entity is softdeleted properly, I still want to displayed the deleted users for some roles, so I'm trying a ...
baronbrn's user avatar
  • 129
1 vote
0 answers
232 views

Doctrine 2 supports FieldType "interval" and it is stored in DB as varchar "+P00Y00M168DT00H00M00S" For Entity's this is enough to add this to an DateTime-Object. But i wonder why this can't used in ...
Marcus Wolf's user avatar
2 votes
1 answer
2k views

Goal: I have a category entity. Every category can have subcategories. Now I want to get specific category nodes by id with all its parents My current solution (custom repository function): public ...
emovere's user avatar
  • 162
2 votes
1 answer
248 views

I'm trying to convert a MySQL8 query to Doctrine DQL in Symfony4. I used to https://github.com/beberlei/DoctrineExtensions extensions. But there are still errors. Query is work well. SELECT id, ...
Mehmet S.'s user avatar
  • 388
1 vote
1 answer
1k views

Is it possible to get config parameters during compiler pass? I have this extention config: my_extension: foo: 'bar' I need to see if a config is set before adding a compiler pass: <?php ...
numediaweb's user avatar
  • 17.2k
-1 votes
1 answer
414 views

I am following the doctrine documentation about sort association: Ordering To-Many Associations I have a category entity, it has many articles: class Category { /** * @ORM\OneToMany(...
Moon soon's user avatar
  • 2,876
1 vote
0 answers
951 views

I've got an entity called Logs that has a ManyToOne relation to an HourlyRates entity. Both Logs and HourlyRates have date properties. When adding a log with a specific date, an hourlyRate is assigned ...
ephemerev's user avatar
0 votes
0 answers
2k views

I want to register logs when i update my entity with gdmo-loggable, the table exists but no one register. Here's my current code # config.yaml # Doctrine Configuration doctrine: orm: ...
countrystores's user avatar
3 votes
1 answer
2k views

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/...
Simeon Kolev's user avatar
3 votes
1 answer
2k views

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\...
Cheshire Katzzze's user avatar
0 votes
1 answer
586 views

Scenario We want to autofill a table with new static content with doctrine, ideally with something like a fixture class or similar. We follow the simple development life-cycle with development to ...
Nico Richter's user avatar
1 vote
2 answers
374 views

How to use utc_timestamp in Symfony 4? Getting below message while using utc_timestamp [Semantical Error] line 0, col 199 near 'UTC_TIMESTAMP': Error: 'UTC_TIMESTAMP' is not defined.
ankit parmar's user avatar
1 vote
0 answers
1k views

I have tried to configure Gedmo Sluggable properly in a Symfony 4 application and failed. The issue is: it is not working. Any sluggable columns aren't recognized as being sluggable and stay empty ...
itinance's user avatar
  • 12.5k
3 votes
0 answers
1k views

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/...
Dominik's user avatar
  • 31
0 votes
1 answer
500 views

Introduction For my personal project i am using: Windows 10 Pro XAMPP with PHP v7.2.14 Postgres v10.6 Symfony v4.2.4 Doctrine v2.6.3 StofDoctrineExtensionsBundle in order to manage Tree structure. ...
Rikijs's user avatar
  • 846
0 votes
1 answer
355 views

How can I set an user value on Gedmo\Blameable\BlameableListener in a Zend Expressive application? The event subscribers are successfully added to the EventManager (see configuration file). The ...
arueckauer's user avatar
1 vote
3 answers
4k views

I have to make requests with YEAR and I installed beberlei/DoctrineExtensions with doctrine command. I added the requested annotations doctrine: orm: auto_generate_proxy_classes: '%kernel....
delph49's user avatar
  • 99
1 vote
1 answer
2k views

I try to get sluggable doctrine extention working on my project. I follow a setup step found on Internet, bu it seems to not working (@Gedmo\Slug seems to be not called/triggered). The purpuse is to ...
benjy80's user avatar
  • 195
1 vote
1 answer
330 views

I use Doctrine Translatable for tranlate of my some entity. For example: I have entity "Category" and this entity has one translatable field - "name": /** * @ORM\Entity(repositoryClass="AppBundle\...
Nikita Glazzz's user avatar
10 votes
1 answer
5k views

I'm building an API with Symfony 3.4 and api-platform. I want to use soft delete on my entity. I've installed DoctrineExtensions and StofDoctrineExtensionsBundle. config.yml: doctrine: dbal: ...
Hakim's user avatar
  • 1,112
1 vote
2 answers
4k views

I'm trying to add KnpLabs Doctrine Behaviors - and precisely, the Translatable Behavior - on one of the entity in my API Platform project. Here's what I've done so far : namespace App\Entity; ...
skytorner's user avatar
  • 415
0 votes
1 answer
1k views

I use Symfony 3 framework and the sluggable doctrine extension. I need generate a slug with code like this: <?php /** * @Gedmo\Mapping\Annotation\Slug(handlers={ * @Gedmo\Mapping\Annotation\...
user8879564's user avatar
0 votes
1 answer
583 views

I'm trying to use the Creof bundle and its Distance function. When I execute the following code, I get the following exception: public function getMapDecorator(array $requestInformation, $type) : ...
Etienne Noël's user avatar
1 vote
1 answer
907 views

I'm expecting, it should update deleted_at field when I've executed DELETE query. And it should add deleted_at is null condition to end of SELECT query. But its really delete rows with a silly ...
levye's user avatar
  • 552
0 votes
1 answer
77 views

I want to use the DAY() and YEAR() functions in my Doctrine2 query builder. But somehow I keep on getting errors: Fatal error: Uncaught Doctrine\ORM\Query\QueryException: SELECT DAY(h.date) AS day ...
Youri's user avatar
  • 505
2 votes
1 answer
757 views

I have entities with traslated fields using Translatable from DoctrineExtensions. This is how it looks: /** * @ORM\Table * @ORM\Entity(repositoryClass="AppBundle\Entity\Repository\...
Marek's user avatar
  • 2,749
0 votes
1 answer
989 views

I use Doctrine and PostgreSQL database in my project and I would like to make it translatable. The problem is that I would like to sort some strings correctly related to the selected language customs. ...
JCZ's user avatar
  • 430
0 votes
2 answers
809 views

I try to override the category entity of an akeneo project. I follow the doc but always have an error i can't resolve. added this in config.yml - original: Pim\Bundle\CatalogBundle\Entity\...
t-n-y's user avatar
  • 1,217
1 vote
0 answers
735 views

Is it possible to map Gedmo with yaml ? I'm using yaml file in my project and I would like to use Translatable from doctrine extensions but I have a problem with it. I have something like that (one ...
Joe Allen's user avatar
  • 1,327
0 votes
1 answer
1k views

Im running my own project with Symfony 3.3.*, trying to install DoctrineFixturesBundle. This is my fixture loader. namespace AdminBundle\DataFixtures\ORM; use Doctrine\Common\DataFixtures\...
oadamczyk's user avatar
6 votes
1 answer
820 views

I have a Symfony 3.2 entity using Doctrine's Translatable extension. namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; use Symfony\Component\...
Damien Debin's user avatar
  • 2,822