Skip to content

Instantly share code, notes, and snippets.

@estahn
Last active September 24, 2015 06:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save estahn/703556 to your computer and use it in GitHub Desktop.
Save estahn/703556 to your computer and use it in GitHub Desktop.
Doctrine - Versionable behavior configuration for use in symfony
Authority:
columns:
...
actAs:
Versionable:
className: '%CLASS%Versionable'
tableName: '%TABLE%_log'
deleteVersions: false
auditLog: true
generateFiles: true
generatePath: '<?php echo sfConfig::get("sf_lib_dir"); ?>/model/doctrine'
builderOptions: <?php echo sfYamlInline::dump(ProjectConfiguration::getActive()->getPluginConfiguration('sfDoctrinePlugin')->getModelBuilderOptions()); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment