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
0
votes
0 answers

How to make slug field unique per language

On symfony 6.2, I am using DoctrineExtensions package for slug generation. For translation, I am using KNP DoctrineBehaviors. The generated slug (based on the title field) should be unique but only per language. So if in english, the title is "test"…
Vénizia
  • 581
  • 5
  • 14
0
votes
1 answer

Symfony UX Autocomplete - choice_label with KnpLabs Translatable

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 form in the database. I cannot get the…
0
votes
1 answer

Doctrine Extension working locally but doesn't work on the live server

I'm binding entity manager in the container like this with the configurations including the DATE extension function ....... Config::class => create(Config::class)->constructor( require CONFIG_PATH .…
0
votes
0 answers

Symfony, doctrine, API platform - problem with filter

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 isEnabled field in entity. Extension checking if…
0
votes
0 answers

Apply extension only for specific operations

I'm working on a project using API Platform as a backend. I'd like to apply doctrine extension only for specific operations. For example, some "admin" operations (with specific uriTemplate) should provide data that is not present on "classic"…
user7330689
  • 21
  • 1
  • 2
0
votes
1 answer

Listener "SoftDeleteableListener" was not added to the EventManager. Soft delete works but i can't register softdeleteable filter

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 softdeleteable filter. This is my config/packages/doctrine.yaml…
bici
  • 47
  • 1
  • 8
0
votes
0 answers

Symfony 6, easyamin 4, and KnpLabs/DoctrineBehaviors/translatable. Editing a translatable entity returns unexpected form view data

I am quite new to the php world in general and very new to the framework world for php. In the following (toy) project, I wanted to see how translations stored in the database via ORM work with php. In the current step, I wanted to add easyadmin to…
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
0 answers

Doctrine getRepository call cannot find class following composer update

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()->getRepository('AppBundle:Stadium') errors with: Class…
crmpicco
  • 16,605
  • 26
  • 134
  • 210
0
votes
0 answers

Symfony/flex problem installing stof_doctrine_extensions

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…
0
votes
2 answers

"Syntax error or access violation: 1064" When changing column type from string to integer [LARAVEL MIGRATION]

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. Whenever I try to run this rollback, I get hit…
0
votes
1 answer

Using Doctrine extension Translatable with API Pplatform

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("EN" or "FR" etc) then I want to send response…
0
votes
0 answers

Symfony / Doctrine materializedPath issues

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 task SET path = ?, task_id = ?, lvl = ? WHERE id =…
Alex.Barylski
  • 2,843
  • 4
  • 45
  • 68
0
votes
0 answers

gedmo loggable doesn't save in database

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: auto_generate_proxy_classes: "%kernel.debug%" …
0
votes
1 answer

How to load tables with static content in production environment with symfony 3.4

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 staging to production. And we are using Doctrine v2.6…
Nico Richter
  • 135
  • 1
  • 2
  • 9