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
1
vote
2 answers

How to getPath of Gedmo Tree element using symfony3, doctrine2 and stofDoctrineExtensionsBundle

I am using Symfony v3.0.4, Doctrine v2.5.4 and StofDoctrineExtensionsBundle [1] in order to manage Tree structure. To setup Tree structure I used documentation on Symfony.com [2] followed by documentatnion on GitHub [3]. Then I proceeded with tree…
1
vote
2 answers

doctrine2 sluggable with field with association

I have ORM: Something\SomeBundle\Entity\MyTable: type: entity table: my_table_name id: id: type: bigint id: true generator: strategy: AUTO fields: name: type: string length: '64' …
1
vote
1 answer

UploadableFilePath field in entity definition is ignored (uploadable doctrine extensions)

Summary My problem is connected with the fact that the entity field marked with @Gedmo\UploadableFilePath annotation is ignored by Symfony3. I am using the Uploadable behavior extension for Doctrine2. CODE In my entity I have: /** * @ORM\Column *…
Abdel5
  • 1,112
  • 3
  • 16
  • 39
1
vote
2 answers

Uplodable stof doctrine extensions - The file "" does not exist

MY PROBLEM I am tying to make stof/StofDoctrineExtensionsBundle work with symfony3. Therefore instead of using $form->bind as listed in example in stof documentation I tried $form->handleRequest. Unluckily after submitting the form I get the…
1
vote
1 answer

How to use translatable fields in Sonata Admin?

I use "Knp Doctrine2 Behaviors" for entity translations and "A2LiX Translation Form" to translate entities in Sonata Admin form. Everything work fine. But I can’t realize what I should put in "configureDatagridFilters" and "configureListFields" …
Molarro
  • 1,005
  • 1
  • 10
  • 24
1
vote
1 answer

Doctrine generate entities command produces extra src/Gedmo files, which causes command stops working until folder removing

I use Doctrine with Gedmo extension in standalone noframework application. Autoloading is done via composer, composer.json content: { "autoload": { "psr-0": { "App": "src" } }, "require": { "doctrine/orm": "^2.5", …
userlond
  • 3,632
  • 2
  • 36
  • 53
1
vote
1 answer

Handle translatable entities with translation stored in the same row using Doctrine

I'm looking for a solution to automatically translate the entities of my Symfony application. I'm stuck with a legacy database where translations are stored in the same table as extra fields: id | name | name_de | name_fr 1 | cat | Katze | chat …
althaus
  • 2,009
  • 2
  • 25
  • 33
1
vote
0 answers

Error using A2lix as an embedded form

I'm using A2lix Translation Form Bundle and Doctrine Behaviors Translatable in a project where I have two entities: company and files. Company has some translatable fields so I have a CompanyTranslations Entity for that. One company can have one…
1
vote
1 answer

how to populate data in 'closure' table if we have existing hierachy using parent_id in Gedmo doctrine tree extension?

I have existing category hierarchy with parent_id column. I have configured Gedmo Tree extension and update schema. I can see 'level' column is added to category table and category_closure table is created. How do I populate the data in…
vishal
  • 3,993
  • 14
  • 59
  • 102
1
vote
2 answers

A2LiX Translation Form labels options

I'm using KnpLabs/DoctrineBehaviors/Translatable and A2LiX Translation Form to translate my entities in a Symfony application. It works very well. However, when the form is rendered there is a "translations" title that I would like to delete and a…
ana-lu
  • 269
  • 1
  • 3
  • 12
1
vote
0 answers

Tree add child with empyty root give my root = 0, NestedTreeRepository search null

i have entity /** * @Gedmo\Tree(type="nested") * @ORM\Table(name="mKeyword") * use repository for handy tree functions * @ORM\Entity(repositoryClass="KeywordRepository") */ class Keyword { /** * @Gedmo\TreeRoot *…
1
vote
0 answers

Symfony FPNTagBundle loadTagging

I use FPNTagBundle so that my users are able to add tags to a fact sheet. I got no problem for save my tags but i don't understand what i have to do for retrieve associated tags. I thought i had to use: $tagManager->loadTagging($factsheet); but…
stax
  • 325
  • 1
  • 2
  • 15
1
vote
0 answers

Doctrine Extension Loggable on single or multiple tables (for performance)

I have roughly 60 entities. All of them have some fields which are loggable. I expect roughly 1000 fields in total to be logged. Let's estimate that each field changes 10 times on average. I'm setting up a SaaS, so I'm expecting more than one…
Sergio Negri
  • 2,023
  • 2
  • 16
  • 38
1
vote
1 answer

Doctrine Extensions - Tree - Multiple roots

We heavily use the tree doctrine extension in our zf2 project - with some big tree data structures. We know that inserts and updates in a nested set are expensive. We also know that the tree plugin uses the "root" column to find out which tree shall…
1
vote
1 answer

How to print translatable values in twig ( doctrine extension)

I am using translatable It can handle the data directly depending on the current locale setting. However I want to access each data sometimes with ignoring locale setting. in contoroller. I can access each data like this. $transRepo =…
whitebear
  • 11,200
  • 24
  • 114
  • 237