Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/dev/1.9' into 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrebenchuk committed Apr 8, 2016
2 parents 1690e54 + 130bfd4 commit 2e73f97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Provider/Transport/Iterator/MemberSyncIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,16 @@ protected function addNameFields($entityName, QueryBuilder $qb)
$entityAlias = $from[0]->getAlias();
$parts = $this->formatter->extractNamePartsPaths($entityName, $entityAlias);

$this->hasFirstName = false;
$this->firstNameField = null;
if (isset($parts['first_name'])) {
$this->hasFirstName = true;
$this->firstNameField = $parts['first_name'];
$qb->addSelect($this->firstNameField . ' as first_name');
}

$this->hasLastName = false;
$this->lastNameField = null;
if (isset($parts['last_name'])) {
$this->hasLastName = true;
$this->lastNameField = $parts['last_name'];
Expand Down

0 comments on commit 2e73f97

Please sign in to comment.