|
@@ -316,15 +316,15 @@ discard block |
|
|
block discarded – undo |
|
316
|
316
|
public function __construct() |
|
317
|
317
|
{ |
|
318
|
318
|
$this->enable = 0; |
|
319
|
|
- $this->registerDate = new \DateTime('now'); |
|
320
|
|
- $this->company = new \Doctrine\Common\Collections\ArrayCollection(); |
|
321
|
|
- $this->config = new \Doctrine\Common\Collections\ArrayCollection(); |
|
322
|
|
- $this->link = new \Doctrine\Common\Collections\ArrayCollection(); |
|
323
|
|
- $this->user = new \Doctrine\Common\Collections\ArrayCollection(); |
|
324
|
|
- $this->document = new \Doctrine\Common\Collections\ArrayCollection(); |
|
325
|
|
- $this->address = new \Doctrine\Common\Collections\ArrayCollection(); |
|
326
|
|
- $this->email = new \Doctrine\Common\Collections\ArrayCollection(); |
|
327
|
|
- $this->phone = new \Doctrine\Common\Collections\ArrayCollection(); |
|
|
319
|
+ $this->registerDate = new \DateTime('now'); |
|
|
320
|
+ $this->company = new \Doctrine\Common\Collections\ArrayCollection(); |
|
|
321
|
+ $this->config = new \Doctrine\Common\Collections\ArrayCollection(); |
|
|
322
|
+ $this->link = new \Doctrine\Common\Collections\ArrayCollection(); |
|
|
323
|
+ $this->user = new \Doctrine\Common\Collections\ArrayCollection(); |
|
|
324
|
+ $this->document = new \Doctrine\Common\Collections\ArrayCollection(); |
|
|
325
|
+ $this->address = new \Doctrine\Common\Collections\ArrayCollection(); |
|
|
326
|
+ $this->email = new \Doctrine\Common\Collections\ArrayCollection(); |
|
|
327
|
+ $this->phone = new \Doctrine\Common\Collections\ArrayCollection(); |
|
328
|
328
|
$this->otherInformations = json_encode( |
|
329
|
329
|
new stdClass() |
|
330
|
330
|
); |
|
@@ -582,7 +582,7 @@ discard block |
|
|
block discarded – undo |
|
582
|
582
|
} |
|
583
|
583
|
public function getOneDocument(): ?Document |
|
584
|
584
|
{ |
|
585
|
|
- $documents = $this->getDocument()->filter(function ($peopleDocument) { |
|
|
585
|
+ $documents = $this->getDocument()->filter(function($peopleDocument) { |
|
586
|
586
|
if ($peopleDocument->getPeople()->getPeopleType() == 'F') { |
|
587
|
587
|
return $peopleDocument->getDocumentType()->getDocumentType() == 'CPF'; |
|
588
|
588
|
} |