Questions tagged [stofdoctrineextensions]
81 questions
2
votes
1 answer
How doctrine loggable extension stores history in the database? Can I change it?
I'm searching around all web.. but not found reply to this question. For logging changes in my project entities I want use stof doctrine extension - loggable, but it's not obvious for me, how changes in the entities are stored in the database? Can…

champion
- 339
- 1
- 2
- 12
1
vote
1 answer
How to use Timestampable in a Trait with Platform API groups
Now i have a lot of entities with:
#[ORM\Column(type: 'datetime')]
#[Groups(['article_category:output'])]
/**
* @Timestampable(on="create")
*/
private \DateTime $createdAt;
public function getCreatedAt(): \DateTime
{
return…

mcwnuq
- 13
- 1
- 3
1
vote
1 answer
Gedmo Loggable extension: add a new column to entries
I have an application with products and attributes. In the backoffice I would like to track the changes on the attribute values. I started using loggable extension by gedmo and it works fine but now I'd like to add a new column in the log entry…

petekaner
- 8,071
- 5
- 29
- 52
1
vote
1 answer
Cloning Doctrine entity with translations made with DoctrineExtensions Translatable
I have entities with traslated fields using Translatable from DoctrineExtensions. This is how it looks:
/**
* @ORM\Table
* @ORM\Entity(repositoryClass="AppBundle\Entity\Repository\SurveyAnswerRepository")
* @Gedmo\Loggable
*/
class…

Marek
- 2,681
- 3
- 22
- 18
1
vote
0 answers
How to get categories and corresponding item count with one DQL query
Introduction
I am using:
XAMPP with PHP v7.1.6
Symfony v3.3.4
Doctrine v2.5.4
StofDoctrineExtensionsBundle [1] in order to manage Tree structure.
Setting up
To setup Tree structure I used documentation on Symfony.com [2] followed by documentation…

Rikijs
- 728
- 1
- 12
- 48
1
vote
1 answer
Symfony 3 - Stof Doctrine Extension Uploadable : Edit file
I use stof doctrine uploadable on entity.
The "add" and "remove/delete" actions in my controller run perfectly.
I actualy have a problème to make an edit form for that entity.
Here's my code:

Yubae
- 11
- 3
1
vote
2 answers
How to choose locale for STOF translatable with NelmioAliceBundle Fixture in Symfony
Hy,
For some time know I have an issue with my test scenario.
I use behat/mink ~2.0 and Nelmio/Alice ^2.x in my Symfony project.
On some of my project I use the doctrine extension translatable to manage i18n on my buisness entity.
When alice persist…

Anthony Grandin
- 36
- 5
1
vote
1 answer
Sort Gedmo Tree by arbitrary field using symfony3, doctrine2 and stofDoctrineExtensionsBundle
Introduction
I am using:
Windows 10 Pro
XAMPP with PHP v7.0.9
Symfony v3.1.7
Doctrine v2.5.4
StofDoctrineExtensionsBundle [1] in order to manage Tree structure.
Setting up
To setup Tree structure I used documentation on Symfony.com [2] followed by…

Rikijs
- 728
- 1
- 12
- 48
1
vote
1 answer
Get parent_id 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…

Rikijs
- 728
- 1
- 12
- 48
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…

Rikijs
- 728
- 1
- 12
- 48
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…

Abdel5
- 1,112
- 3
- 16
- 39
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
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
*…

Developer
- 2,731
- 2
- 41
- 71
1
vote
2 answers
How to slug update if I update entity
My ask - if I create user, in my field slug set - firstname+lastname. if I update fields firstname and lastname slug not change, why?And What me need to do for this trable check? Because I use slug field(username) in my routing
I have:
class SUser…

shuba.ivan
- 3,824
- 8
- 49
- 121
1
vote
1 answer
Coherent logic behind the use of SoftDeleteable
By every is know that SoftDeleteable is a Doctrine Extension:
That allows behavior to "soft delete" objects, filtering them at
SELECT time by marking them with a timestamp as, but not Explicitly
removing them from the database.
Now…

ReynierPM
- 17,594
- 53
- 193
- 363