Browse Source

Correctif backend

feature/export_comptable
Fab 4 years ago
parent
commit
d001500e75
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      ShopBundle/Model/User.php

+ 6
- 1
ShopBundle/Model/User.php View File

$this->userMerchants = new ArrayCollection(); $this->userMerchants = new ArrayCollection();
} }


public function __toString()
{
return $this->getName();
}

public function getSummary() public function getSummary()
{ {
return '#'.$this->getId().' '.strtoupper($this->getLastname()).' '.$this->getFirstname(). ' ('.$this->getEmail().')'; return '#'.$this->getId().' '.strtoupper($this->getLastname()).' '.$this->getFirstname(). ' ('.$this->getEmail().')';


public function getName() public function getName()
{ {
return $this->getFirstname().' '.strtoupper($this->getLastname());
return (string) ucfirst(strtolower($this->getFirstname())). ' '.strtoupper($this->getLastname());
} }


public function setEmail($email) public function setEmail($email)

Loading…
Cancel
Save