فهرست منبع

made getIdExpression private

ausi 13 سال پیش
والد
کامیت
959fe6ea04
2فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 3 3
      lib/Gedmo/Tree/Entity/Repository/NestedTreeRepository.php
  2. 3 3
      lib/Gedmo/Tree/Strategy/ORM/Nested.php

+ 3 - 3
lib/Gedmo/Tree/Entity/Repository/NestedTreeRepository.php

@@ -1075,12 +1075,12 @@ class NestedTreeRepository extends AbstractTreeRepository
      * @param integer|string $id
      * @return string
      */
-    public function getIdExpression($id)
+    private function getIdExpression($id)
     {
-        if(is_string($id)){
+        if (is_string($id)) {
             $id = $this->_em->getExpressionBuilder()->literal($id);
         }
-        if($id === null){
+        if ($id === null) {
             $id = 'NULL';
         }
         return (string)$id;

+ 3 - 3
lib/Gedmo/Tree/Strategy/ORM/Nested.php

@@ -94,12 +94,12 @@ class Nested implements Strategy
      * @param EntityManager $em
      * @return string
      */
-    public function getIdExpression($id, EntityManager $em)
+    private function getIdExpression($id, EntityManager $em)
     {
-        if(is_string($id)){
+        if (is_string($id)) {
             $id = $em->getExpressionBuilder()->literal($id);
         }
-        if($id === null){
+        if ($id === null) {
             $id = 'NULL';
         }
         return (string)$id;