mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	DX: remove unnecessary comparison
This commit is contained in:
		| @@ -86,13 +86,7 @@ final class CountryOfBirthAggregator implements AggregatorInterface, ExportEleme | ||||
|         $qb->leftJoin('person.countryOfBirth', 'countryOfBirth'); | ||||
|  | ||||
|         // add group by | ||||
|         $groupBy = $qb->getDQLPart('groupBy'); | ||||
|  | ||||
|         if (!empty($groupBy)) { | ||||
|             $qb->addGroupBy('country_of_birth_aggregator'); | ||||
|         } else { | ||||
|             $qb->groupBy('country_of_birth_aggregator'); | ||||
|         } | ||||
|         $qb->addGroupBy('country_of_birth_aggregator'); | ||||
|     } | ||||
|  | ||||
|     public function applyOn() | ||||
|   | ||||
| @@ -70,14 +70,7 @@ final class HouseholdPositionAggregator implements AggregatorInterface, ExportEl | ||||
|         $qb->setParameter('date', $data['date_position']); | ||||
|  | ||||
|         $qb->addSelect('IDENTITY(householdmember.position) AS household_position_aggregator'); | ||||
|  | ||||
|         $groupBy = $qb->getDQLPart('groupBy'); | ||||
|  | ||||
|         if (!empty($groupBy)) { | ||||
|             $qb->addGroupBy('household_position_aggregator'); | ||||
|         } else { | ||||
|             $qb->groupBy('household_position_aggregator'); | ||||
|         } | ||||
|         $qb->addGroupBy('household_position_aggregator'); | ||||
|     } | ||||
|  | ||||
|     public function applyOn() | ||||
|   | ||||
| @@ -43,14 +43,7 @@ final class MaritalStatusAggregator implements AggregatorInterface | ||||
|         } | ||||
|  | ||||
|         $qb->addSelect('personmarital.id as marital_status_aggregator'); | ||||
|  | ||||
|         $groupBy = $qb->getDQLPart('groupBy'); | ||||
|  | ||||
|         if (!empty($groupBy)) { | ||||
|             $qb->addGroupBy('marital_status_aggregator'); | ||||
|         } else { | ||||
|             $qb->groupBy('marital_status_aggregator'); | ||||
|         } | ||||
|         $qb->addGroupBy('marital_status_aggregator'); | ||||
|     } | ||||
|  | ||||
|     public function applyOn() | ||||
|   | ||||
| @@ -83,15 +83,7 @@ final class NationalityAggregator implements AggregatorInterface, ExportElementV | ||||
|         } | ||||
|  | ||||
|         $qb->leftJoin('person.nationality', 'nationality'); | ||||
|  | ||||
|         // add group by | ||||
|         $groupBy = $qb->getDQLPart('groupBy'); | ||||
|  | ||||
|         if (!empty($groupBy)) { | ||||
|             $qb->addGroupBy('nationality_aggregator'); | ||||
|         } else { | ||||
|             $qb->groupBy('nationality_aggregator'); | ||||
|         } | ||||
|         $qb->addGroupBy('nationality_aggregator'); | ||||
|     } | ||||
|  | ||||
|     public function applyOn() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user