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

Edit multiple languages column at the same time

I am using translatable table by doctorine2 extension I have successfully implemented input and output data for each languages. However I would like to edit the multiple language at the same time. like this below this codes is not correct, however…
1
vote
0 answers

Integration DoctrineExtensions-Taggable into Zend Framework 2

How can I integrate DoctrineExtensions-Taggable into Zend Framework2 ? I added to my composer file. "fpn/doctrine-extensions-taggable": "dev-master", Then added listener to EventManager 'eventmanager' => array( 'orm_default' => array( …
1
vote
0 answers

SonataAdmin field translatable empty

I have configured an Entity as translatable using Gedmo Translatable. The problem is that the translatable field is blank when I show it in the list view of Sonata. Am I missing something?
Gerardo
  • 5,800
  • 11
  • 66
  • 94
1
vote
1 answer

Symfony 2 - Gedmo Uploadable error durng edition

I have everything configured as in documentation and everything works perfect if I upload all files. But when I want change only other elements in form without changing photo i have received following error message: You must pass an instance of…
dbcoder
  • 11
  • 1
1
vote
0 answers

Cannot save child in nested tree form in symfony2

I try to add childrens in a form for a doctrine nested relation in symfony2. But the relations are not saved. I use the Doctrine Extensions and all other behaviours works as expected. My self related entity: class Article { /** * @Gedmo\TreeLeft …
Jaycreation
  • 2,029
  • 1
  • 15
  • 30
1
vote
0 answers

Error: Expected Doctrine\ORM\Query\Lexer::T_CLOSE_PARENTHESIS, got ','

I am building a complex SQL query with Doctrine in SYmfony, which involves joining into multiple tables. As part of the above SQL query, I need to use GROUP_CONCAT and hopefully I bumped on this available extension:…
thitami
  • 828
  • 2
  • 21
  • 44
1
vote
1 answer

Symfony 2.3 Gedmo doctrine extensions translatable caching

I'm using Gedmo Doctrine extensions All works well so far, except for translations caching. $entity = $repository ->findByIdFullData($id) ->setHint(\Doctrine\ORM\Query::HINT_CUSTOM_OUTPUT_WALKER,…
Karmalakas
  • 1,143
  • 2
  • 19
  • 39
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

Storing relative paths from the Uploadable Doctrine extension

Is there a way of getting the Doctrine Uploadable extension to store a path relative to a directory in the database? We use Capistrano to manage releases on our servers, so when a file is uploaded, the stored path looks like:…
Ross
  • 46,186
  • 39
  • 120
  • 173
1
vote
1 answer

Sonata and Gedmo\References doctrine extension doesn't work ( Class does not exist )

I want to link the doctrine orm entity and doctrine odm document and use them in sonataAdminBundle in configureFormFields Method of the Admin Class. I've established the @Gedmo\References doctrine-extension and it works just fine when i'm trying to…
1
vote
1 answer

Create auto-generate a slug from Doctrine prefixed by year

I would like to auto-generate a slug from Doctrine in my Symfony 2.4 application, where the slug is unique based upon the year that the record was created. I am using DoctrineExtensions. For my blog records i want the route to be…
1
vote
1 answer

DoctrineExtensions, does entity have translation in current locale?

I'm using DoctrineExtensions in order to get my entities translated. It works really fine, but i don't know how to resolve this issue : I use translation fallback, personal translations and ORM query hint in order to reduce DB queries. If the…
1
vote
0 answers

Gedmo\Tree how to sort roots?

I want to use Gedmo\Tree in Doctrine. I want to show all Trees, is it possible to sort root nodes? For example: I have some categories. There are some main categories (root node) and subcategories (children). If I select and build tree (e.g. method…
1
vote
1 answer

Is there a default locale in doctrine extensions translatable?

I have implemented the translatable extension. I use a Category (tree extension ) entity and a CategoryTranslation entity as shown in the documentation. All my titles in the Category entity are in French. I would like to translate my website in…
Reveclair
  • 2,399
  • 7
  • 37
  • 59
1
vote
1 answer

Doctrine2 extra column or table for extension

I want to make Doctrine 2 extension, that will add an extra field to entity. I will also need new table. Field and table will be based on my custom annotation added to that entity. I think it must be added somehow in loadClassMetadata event. can…
Yavin
  • 445
  • 3
  • 15