Annotations.php 681 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Gedmo\Sluggable\Mapping;
  3. use Doctrine\Common\Annotations\Annotation;
  4. /**
  5. * These are Sluggable extension annotations which should be used
  6. * for slug generation on any Entity from sluggable fields
  7. *
  8. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  9. * @package Gedmo.Sluggable.Mapping
  10. * @subpackage Annotations
  11. * @link http://www.gediminasm.org
  12. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  13. */
  14. final class Sluggable extends Annotation {}
  15. final class Slug extends Annotation {
  16. public $updatable = true;
  17. public $style = 'default'; // or "camel"
  18. public $unique = true;
  19. public $separator = '-';
  20. }