Dinoweb 14 年之前
父节点
当前提交
0af0c34d5e

+ 1 - 4
lib/Gedmo/Sluggable/Mapping/Driver/Annotation.php

@@ -108,10 +108,7 @@ class Annotation implements AnnotationDriverInterface
                 if (!$this->isValidField($meta, $field)) {
                     throw new InvalidMappingException("Cannot use field - [{$field}] for slug storage, type is not valid and must be 'string' in class - {$meta->name}");
                 }
-<<<<<<< HEAD
-                
-=======
->>>>>>> multiple_slugs_1
+
                 $config['slugFields'][$field]['slug'] = $field;
                 $config['slugFields'][$field]['style'] = $slug->style;
                 $config['slugFields'][$field]['updatable'] = $slug->updatable;

+ 0 - 18
lib/Gedmo/Sluggable/SluggableListener.php

@@ -182,30 +182,16 @@ class SluggableListener extends MappedEventSubscriber
             }
             // if slug is changed, do further processing
             if ($needToChangeSlug) {            
-<<<<<<< HEAD
-    
-=======
->>>>>>> multiple_slugs_1
                 if (!strlen(trim($slug))) {
                     throw new \Gedmo\Exception\UnexpectedValueException("Unable to find any non empty sluggable fields for slug [{$slugField}] , make sure they have something at least.");
                 }
                 
                 $slugFieldConfig = $config['slugFields'][$slugField];
-<<<<<<< HEAD
-        
-=======
-
->>>>>>> multiple_slugs_1
                 // build the slug
                 $slug = call_user_func_array(
                     $this->transliterator,
                     array($slug, $slugFieldConfig['separator'], $object)
                 );
-<<<<<<< HEAD
-        
-=======
-
->>>>>>> multiple_slugs_1
                 // stylize the slug
                 switch ($slugFieldConfig['style']) {
                     case 'camel':
@@ -258,10 +244,6 @@ class SluggableListener extends MappedEventSubscriber
         {
             $config = $this->getConfiguration($om, $meta->name);
         }
-<<<<<<< HEAD
-        
-=======
->>>>>>> multiple_slugs_1
 
         // search for similar slug
         $result = $ea->getSimilarSlugs($object, $meta, $config, $preferedSlug);

+ 0 - 5
tests/Gedmo/Sluggable/TranslatableManySlugTest.php

@@ -77,11 +77,6 @@ class TranslatableManySlugTest extends BaseTestCaseORM
         $this->assertEquals('title-in-de-code-in-de', $translations['de_de']['slug']);
     }
 
-<<<<<<< HEAD
-
-
-=======
->>>>>>> multiple_slugs_1
     protected function getUsedEntityFixtures()
     {
         return array(