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
1 answer

ZF2 and Doctrine 2: Translation entity form

I need to create ZF2 form for a Doctrine translatable Entity (I use https://github.com/Atlantic18/DoctrineExtensions Translatable Extension), which should provide fields for all translatable properties(columns) of the entity in each available…
0
votes
1 answer

The annotation "@Gedmo Slug does not exist, or could not be auto-loaded

In the localhost all things work fine but after I have deployed th project I get this error [Semantical Error] The annotation "@Gedmo\Mapping\Annotation\slug" in property AppBundle\Entity\Product::$slug does not exist, or could not be…
hous
  • 2,577
  • 2
  • 27
  • 66
0
votes
0 answers

Doctrine: keeps dropping the first new ManyToOne relation

I have the following class diagram: When I try to persist the $blockImage collection on a new ImageContentBlock the first ImageContentBlockImage object (always the one with $order = 1) is dropped from the collection and not persisted. I can trace…
0
votes
2 answers

A2Lix Translation Form in Sublime3

I am developing a multilanguage site in Symfony3 with KnpDoctrineExtension and a2lix/translation-form-bundle. I followed the documentation both for KNP and A2Lix: controller and entities are OK but when I try to build and render the form I get a 500…
chieroz
  • 63
  • 8
0
votes
1 answer

Argument 2 error while configuring Gedmo tree repoository with traits using Symony3 and stofDoctrineExtensionsBundle

I am getting error: Type error: Argument 2 passed to AppBundle\Repository\CategoryRepository::__construct() must be an instance of AppBundle\Repository\ClassMetadata, instance of Doctrine\ORM\Mapping\ClassMetadata given, called in…
Rikijs
  • 728
  • 1
  • 12
  • 48
0
votes
1 answer

Gedmo Tree getPath Error: Node is not related to this repository 500 Internal Server Error - InvalidArgumentException

I am getting error: Node is not related to this repository 500 Internal Server Error - InvalidArgumentException UPDATE 1: it does not matter if I set up tree repository with traits or extend abstract repository the error is the same. UPDATE 2: Full…
Rikijs
  • 728
  • 1
  • 12
  • 48
0
votes
1 answer

Doctrine FIND_IN_SET leads to Error: Expected end of string, got '('

I've got the following doctrine query in Symfony2: $query = $em ->createQuery(" SELECT m FROM MyBackendBundle:Merchant m WHERE m.active = :active ORDER BY FIND_IN_SET(m.range, 'all', 'without_special'), m.tradingAmount…
Christian Kolb
  • 1,368
  • 2
  • 23
  • 43
0
votes
1 answer

Preparing options for updating hierarchical categories using the Doctrine extension Tree

I'm using the Doctrine extension tree for managing categories in a hierarchical way in a symfony project. Still, i haven't found out how to simply manage the add/edit part in twig : I can display the html tree structure with childrenHierarchy()…
Overdose
  • 585
  • 7
  • 30
0
votes
1 answer

Warning: in_array() expects parameter 2 to be array, object given While Saving One to Many Relationship forms

i have one to many relationship between my user and roles. while creating a new user i have render all the roles from roles entity and render it on with create user form. after putiting user info and selecting roles. when inserting into the db it…
Muhammad Taqi
  • 5,356
  • 7
  • 36
  • 61
0
votes
1 answer

Update entities changed with DoctrineExtensions Sortable

I have a PreUpdate listener where I change entry version. I have my own Versioning system (just an integer field with a version number which is increased to the highest+1 when entity is changed). So if I change sth, version is increased. I also use…
Tom
  • 1,203
  • 3
  • 15
  • 35
0
votes
1 answer

DoctrineExtensions looking in wrong directory

I'm using Doctrine ORM in my PHP project. In one of my queries I'm using the 'COS' (cosine) and 'SIN' (sine) functions, in order to make this possible on Doctrine I have to add this to my entitymanager…
Swag
  • 2,090
  • 9
  • 33
  • 63
0
votes
1 answer

Order By DAY() Doctrine Symfony2

I,m using Beberlei DoctrinExtensions Bundle to do queries with DAY(), MONTH() and YEAR() on Symfony2. Everything works on selects. But, when I try to make some OrderBy, I got a Syntax Error. Here is my code: SELECT a FROM AppUserBundle:User a WHERE…
Munir
  • 739
  • 2
  • 14
  • 38
0
votes
1 answer

DoctrineExtensions error

I'm trying to configure https://github.com/Atlantic18/DoctrineExtensions with the instruction https://github.com/l3pp4rd/DoctrineExtensions/blob/master/doc/annotations.md#em-setup But I get an error: The annotation…
0
votes
1 answer

Gedmo Doctrine Extensions Tree can't create category without a parent

I'm using the Gedmo Doctrine Extensions to handle Categories as a nested set. I'm building a REST API and I have a route to create a Category. I want to be able to create root Categories or child Categories. Here is the entity
Hakim
  • 1,084
  • 11
  • 28
0
votes
2 answers

Why tree is invalid?

I have a entity that use doctrine extension, tree behaviuor, i found problems in tree and don't know it's reason. my entity: MyEntity: type: entity gedmo: tree: type: nested id: id: type: integer …