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

beberlei/DoctrineExtensions fatal error with zend2

i used beberlei doctrine extensions in zend framework 2 for mysql GroupConcat after installing it with composer i changed my settings like this from question : How to implement beberlei doctrine extensions in zend framework 2 'configuration' =>…
babak faghihian
  • 1,169
  • 2
  • 13
  • 24
0
votes
1 answer

DoctrineExtensions Notice: Undefined index: foreignKey in $em->getRepository('Gedmo\\Translatable\\Entity\\Translation');

I try to save multiple translations like in this example, but I have an error. here is entity /** * @ORM\Entity * @Gedmo\TranslationEntity(class="BaseTranslation") * @ORM\Table(name="c_Base") */ class Base { /** *…
Developer
  • 2,731
  • 2
  • 41
  • 71
0
votes
1 answer

Doctrine behavioral extensions: Loggable with Timestampable

As I understand from the docs, you can get a full history of changes on an entity with Loggable as long as it is configured as \Versioned in the entity. I was wondering if this log history retains also a timestamp of the changes? If not, is it…
Lunfel
  • 2,499
  • 21
  • 29
0
votes
2 answers

DoctrineExtensions translatable in ZF2 - how and where can I setDefaultLocale

I stuck with the $defaultLocale of the TranslatableListener. https://github.com/Atlantic18/DoctrineExtensions/blob/master/doc/translatable.md#default-locale I found only setup possibilities for Symphony, but not for Zend Framework 2. There is an…
Oskar
  • 105
  • 1
  • 6
0
votes
1 answer

The best way to get all children taxons of a root taxon

I'm trying to build a dynamic menu based on the taxons from the root taxon 'Category'. This is the menu I want to get : Taxon A Taxon A1 Taxon A2 Taxon B Taxon B1 Taxon B1a Taxon B1b I coded something which worked this way: First, I overrode…
Geoffrey Brier
  • 789
  • 6
  • 18
0
votes
1 answer

How to reorder the nodes of a nested tree (DoctrineExtensions)

I created a controller action to reorder the nodes of a nested tree branch. I took example on the DoctrineExtensions documentation, but the code is actually trashing the tree. What am I doing wrong? The code of my controller action is as…
olvlvl
  • 2,396
  • 1
  • 22
  • 22
0
votes
1 answer

How to install DoctrineExtensions in Symfony 2.5 and latest

I need use mysql functions in qb such as DATE(), NOW(), FROM_UNIXTIME() etc. I reading this topic How to install Doctrine Extensions in a Symfony2 project. I did it: composer require "beberlei/DoctrineExtensions":"dev-master" all became…
0
votes
1 answer

Symfony2 Gedmo Translatable with APY DataGrid and KNP Paginator

I have a few problems using Gedmo\DoctrineExtensions Translatable. First is APY DataGrid - can't make it to show translated strings in grid on non default locale. If I use Translatable with default settings, all strings in grid are displayed in…
0
votes
1 answer

How to install doctrine extensions

While learning Symfony2 i can't find any resources that will tell me what to do to install doctrine extensions library. i know that I should add new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(), to my AppKernel.php, but what about…
Leo
  • 2,061
  • 4
  • 30
  • 58
0
votes
1 answer

Doctrine2 Nested Set rendering as a table with indentation

I have categories structure (using Gedmo Nested Tree extension for Doctrine2) like in the example: https://github.com/Atlantic18/DoctrineExtensions/blob/master/doc/tree.md#tree-entity-example The question is how to display all the tree as a table…
Alexey Kosov
  • 3,010
  • 2
  • 23
  • 32
0
votes
1 answer

Slug not generated when persisting Entity to Database

I'm using DoctrineExtensions and followed the docs. I have my Entity field decorated with the Sluggable annotation: use Gedmo\Mapping\Annotation as Gedmo; . . . /** * @Gedmo\Slug(fields={"city"}, updatable=false) *…
John the Ripper
  • 2,389
  • 4
  • 35
  • 61
0
votes
2 answers

FOSRestBundle Doctrine extension not working on "PUT" method

I have a problem with FOSRestBundle and Doctrine Extensions. I use Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundleto implement Doctrine Extensions. Here my problem: I have an Entity called "Articles" that has some field feeded by some…
0
votes
1 answer

Editing Slug using Gedmo TreeSlugHandler

I have an entity that is hierarchical using the Gedmo Tree Doctrine extension in Symfony 2. The code for the Category entity is:
Matthew Davis
  • 398
  • 1
  • 7
0
votes
1 answer

Symfony exception when registering new Doctrine event subscriber (SoftDeleteable)

I'm using Symfony 2.3 with Sonata Admin Bundle with DoctrineExtensions (which is enabled by StofDoctrineExtensionsBundle). I enabled, configured and successfully tested SoftDeleteable and Timestampable components. Now, when I try adding another…
0
votes
1 answer

Doctrine Tree path iteration in Symfony 2

I have variable $path which contains the array of the names of sibling categories. Using this variable I would like to create a new array $categories_children, that would contain the array of children of each category from $path array according to…
1 2 3
11
12