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

Notice: Trying to get property of non-object in vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php line 481

I have a really strange case related to doctrine, loggable (DoctrineExtension) and listeners. I will explain the situation I am having here and below is all the code I think is related to the problem. I have two entities (Agreement and Template)…
0
votes
1 answer

Doctrine Translatable how to only fetch records with a translation

I'm using Symfony2 + Doctrine + Translatable from DoctrineExtensions. I have an entity article which has a couple of translatable fields like Title and Content. What is happening now is that I've created a bunch of articles in Chinese language, but…
Jones03
  • 1,207
  • 2
  • 12
  • 30
0
votes
1 answer

Doctrine Extensions [Sluggable] Integrity constraint violation: column slug is not unique

I use inheritence between classes like this: Vehicle---Car----SportCar Vehicle---Truck---TruckMachine my class Vehicle has entity annotation and bidirectional relationship (manytomany) . For Car and Truck, my slug is not the same and is generated…
grnd
  • 1
  • 3
0
votes
1 answer

Combining @Gedmo\NestedTree and @ORM\UniqueEntity

I'm creating a folder structure implemented with the NestedTree behaviour. Furthermore, I don't want that two folders may have the same name if they are siblings. For this, I use the combination of @UniqueEntity and @UniqueConstraint annotations,…
ibizaman
  • 3,053
  • 1
  • 23
  • 34
0
votes
2 answers

Fatal Error when installing stof bundle and doctrine extensions (tree)

Here is the problem : I don't succeed to install stof bundle with symphony 2.0 How I proceed : I add this lines in deps file : [GedmoDoctrineExtensions] git=https://github.com/l3pp4rd/DoctrineExtensions.git …
Reveclair
  • 2,399
  • 7
  • 37
  • 59
-1
votes
1 answer

Test DB schema different than production DB (doctrine:schema:create)

I am setting up a test environment for unit tests, following Symfony's Test-Guide. However each time I deploy the test-DB the final tables look slightly different than the originals from the production db. That means some columns appear on another…
Jonathan
  • 1,955
  • 5
  • 30
  • 50
-1
votes
1 answer

Cannot sort One-To-Many association with Doctrine

I am following the doctrine documentation about sort association: Ordering To-Many Associations I have a category entity, it has many articles: class Category { /** * @ORM\OneToMany(targetEntity="App\Entity\Article", mappedBy="category") …
Moon soon
  • 2,616
  • 2
  • 30
  • 51
-1
votes
1 answer

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

Introduction I am using Symfony v3.1.6, 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 documentation on GitHub [3]. Then I proceeded…
-1
votes
1 answer

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

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

generateUrl does not work in childrenHierarchy

using generateUrl in doctrine extensions tree in action $repo = $em->getRepository('Entity\Category'); $options = array( 'decorate' => true, 'rootOpen' => '
    ', 'rootClose' => '
', 'childOpen' => '
  • ', …
  • -3
    votes
    1 answer

    Gedmo Tree nested-set with multiple sets

    We are using the Gedmo package to manage our menus using a nested-set strategy on our web site. It works, but the problem is that we have several different menus which are referenced via foreign key on our menu_item table. Obviously our menu_item…
    delboy1978uk
    • 12,118
    • 2
    • 21
    • 39
    1 2 3
    11
    12