FAQ Database Discussion Community


Why tree is invalid?

symfony2,doctrine2,tree,doctrine-extensions,stofdoctrineextensions
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 generator: strategy: AUTO fields: # ... lft: type: integer gedmo: - treeLeft rgt: type: integer gedmo: -...

Doctrine behavioral extensions: Loggable with Timestampable

symfony2,doctrine,doctrine-extensions
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 possible to...

translation-form with default entity translations not found

php,symfony2,doctrine-extensions
i try setup translations form http://a2lix.fr/bundles/translation-form/ and https://github.com/Atlantic18/DoctrineExtensions/blob/master/doc/translatable.md#translatable-entity-example composer.json "a2lix/translation-form-bundle": "2.*@dev", "stof/doctrine-extensions-bundle": "1.2.*@dev", config.yml stof_doctrine_extensions: default_locale: en orm: default: translatable: true sluggable: true sluggable: true timestampable: true a2lix_translation_form: locale_provider: default # [1] locales: [pl, en, de] # [1-a] default_locale: en...

DoctrineExtensions translatable in ZF2 - how and where can I setDefaultLocale

php,zend-framework2,locale,doctrine-extensions
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 extension bundle for doctrine for easy setup of DoctrineExtensions named "StofDoctrineExtensionsBundle", but I didn't found something like that for ZF2. The following link shows a...