src/Entity/Accounts.php line 38

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\AccountsRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use ApiPlatform\Metadata\ApiFilter;
  10. use ApiPlatform\Doctrine\Orm\Filter\SearchFilter;
  11. use Symfony\Component\Serializer\Annotation\Groups;
  12. use Symfony\Component\Serializer\Annotation\MaxDepth;
  13. use ApiPlatform\Core\Annotation\ApiProperty;
  14. #[ORM\Entity(repositoryClassAccountsRepository::class)]
  15. #[ApiResource(
  16.     normalizationContext: ['groups' => ['account:read']],
  17.     denormalizationContext: ['groups' => ['account:write']],
  18.     order: ['id' => 'DESC'],
  19. )]
  20. #[ApiFilter(SearchFilter::class, properties: [
  21.     'name' => 'ipartial'
  22.     'code1c' => 'exact',
  23.     'edrpou' => 'exact'
  24.     'user.id' => 'exact'
  25.     'manager.id' => 'exact'
  26.     'manager.firstName' => 'ipartial',
  27.     'phone' => 'exact',
  28.     'accountJobsLists.id' => 'exact',
  29.     'accountJobsLists.name' => 'exact',
  30.     'accountJobsLists.status' => 'exact',
  31.     ])]
  32. class Accounts
  33. {
  34.     #[ORM\Id]
  35.     #[ORM\GeneratedValue]
  36.     #[ORM\Column]
  37.     #[Groups(['account:read''order:read''order_product:read''pre_order_product:read''pre_order:read''load_invoice:read''load_invocie:read''read''account:write''write''agreements:read''user:read''job:read''worker:read''account_job:read''account_worker:read'])]
  38.     private ?int $id null;
  39.     #[ORM\Column(length255)]
  40.     #[Groups(['account:read''order:read''order_product:read''pre_order_product:read''pre_order:read''load_invoice:read''load_invocie:read''read''account:write''write''agreements:read''user:read''job:read''worker:read''account_job:read''account_worker:read'])]
  41.     private ?string $name null;
  42.     #[Groups(['account:read''read''account:write''write'])]
  43.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  44.     private ?\DateTimeInterface $date_entered null;
  45.     #[Groups(['account:read''read''account:write''write'])]
  46.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  47.     private ?\DateTimeInterface $date_modified null;
  48.     #[Groups(['account:read''read''account:write''write'])]
  49.     #[ORM\Column(nullabletrue)]
  50.     private ?int $modified_user_id null;
  51.     #[Groups(['account:read''read''account:write''write'])]
  52.     #[ORM\Column(nullabletrue)]
  53.     private ?int $created_by null;
  54.     #[Groups(['account:read''read''account:write''write'])]
  55.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  56.     private ?string $description null;
  57.     #[ORM\Column(nullabletrue)]
  58.     private ?int $deleted null;
  59.     #[Groups(['account:read''read''account:write''write'])]
  60.     #[ORM\Column(nullabletrue)]
  61.     private ?int $assigned_user_id null;
  62.     #[Groups(['account:read''read''account:write''write''user:read''account_job:read''account_worker:read'])]
  63.     #[ORM\Column(length100nullabletrue)]
  64.     private ?string $edrpou null;
  65.     #[Groups(['account:read''read''account:write''write''user:read'])]
  66.     #[ORM\Column(length255nullabletrue)]
  67.     private ?string $billing_address_city null;
  68.     #[Groups(['account:read''read''account:write''write''user:read'])]
  69.     #[ORM\Column(length255nullabletrue)]
  70.     private ?string $billing_address_state null;
  71.     #[Groups(['account:read''read''account:write''write''user:read'])]
  72.     #[ORM\Column(length255nullabletrue)]
  73.     private ?string $billing_address_country null;
  74.     #[Groups(['account:read''read''account:write''write''user:read'])]
  75.     #[ORM\Column(length255nullabletrue)]
  76.     private ?string $billing_address_street null;
  77.     #[Groups(['account:read''read''account:write''write''user:read'])]
  78.     #[ORM\Column(length50nullabletrue)]
  79.     private ?string $phone null;
  80.     #[Groups(['read''account:write''write'])]
  81.     #[ORM\OneToMany(mappedBy'account'targetEntityOrders::class, cascade:['persist''remove'])]
  82.     private Collection $orders;
  83.     #[MaxDepth(1)]
  84.     #[ApiProperty(writabletrue)]
  85.     #[ORM\ManyToOne(inversedBy'accounts')]
  86.     #[Groups(['account:read''account:write''write'])]
  87.     private ?User $user null;
  88.     #[Groups(['read''account:write''write'])]
  89.     #[ORM\OneToMany(mappedBy'supplier'targetEntityIncomingInvoice::class, cascade:['persist''remove'])]
  90.     private Collection $invoice_supplier;
  91.     #[Groups(['account:read''read''account:write''write''user:read'])]
  92.     #[ORM\Column(length100nullabletrue)]
  93.     private ?string $ipn null;
  94.     #[Groups(['account:read''read''account:write''write''user:read'])]
  95.     #[ORM\Column(length20nullabletrue)]
  96.     private ?string $type null;
  97.     #[MaxDepth(1)]
  98.     #[Groups(['account:read''read''account:write''write'])]
  99.     #[ORM\ManyToOne(targetEntityself::class, inversedBy'accounts')]
  100.     private ?self $parent null;
  101.     #[Groups(['account:write'])]
  102.     #[MaxDepth(2)]
  103.     #[ORM\OneToMany(mappedBy'parent'targetEntityself::class)]
  104.     private Collection $accounts;
  105.     #[Groups(['account:read''read''account:write''write'])]
  106.     #[ORM\Column(length100nullabletrue)]
  107.     private ?string $director null;
  108.     #[Groups(['account:read''order:read''order_product:read''pre_order_product:read''pre_order:read''load_invoice:read''load_invocie:read''read''account:write''write''user:read''worker:read''job:read''account_job:read''account_worker:read'])]
  109.     #[ORM\Column(length20nullabletrue)]
  110.     private ?string $code1c '';
  111.     #[Groups(['account:read''read''account:write''write'])]
  112.     #[ORM\OneToMany(mappedBy'account'targetEntityContacts::class, cascade:['persist''remove'])]
  113.     private Collection $contacts;
  114.     #[MaxDepth(1)]
  115.     #[ORM\ManyToOne(inversedBy'managerAccounts')]
  116.     #[Groups(['account:read''account:write''order:read',  'pre_order:read'])]
  117.     private ?User $manager null;
  118.     #[Groups(['read''account:write''write'])]
  119.     #[MaxDepth(2)]
  120.     #[ORM\OneToMany(mappedBy'account'targetEntityPreOrder::class)]
  121.     private Collection $preOrders;
  122.     #[ORM\OneToMany(mappedBy'account'targetEntityLoadInvoice::class)]
  123.     private Collection $loadInvoices;
  124.     #[ORM\OneToMany(mappedBy'organization'targetEntityAgreements::class)]
  125.     private Collection $organization;
  126.     #[Groups(['account:read''read''account:write''write','user:read''worker:read''job:read'])]
  127.     #[ORM\OneToMany(mappedBy'account'targetEntityAgreements::class, cascade:['persist''remove'])]
  128.     private Collection $agreements;
  129.     #[Groups(['account:read''account:write'])]
  130.     #[ORM\ManyToOne(inversedBy'accounts')]
  131.     private ?Agreements $virtualAgreementSpecfication null;
  132.     #[Groups(['account:read''account:write'])]
  133.     #[ORM\OneToMany(mappedBy'account'targetEntityAccountAddress::class)]
  134.     private Collection $accountAddresses;
  135.     #[ORM\OneToMany(mappedBy'account'targetEntityAccountWorker::class, orphanRemovaltrue)]
  136.     private Collection $accountWorkers;
  137.     #[ORM\OneToMany(mappedBy'account'targetEntityJobs::class)]
  138.     private Collection $jobs;
  139.     #[ORM\OneToMany(mappedBy'account'targetEntityAccountJobsList::class)]
  140.     private Collection $accountJobsLists;
  141.     public function __construct()
  142.     {
  143.         $this->orders = new ArrayCollection();
  144.         $this->invoice_supplier = new ArrayCollection();
  145.         $this->accounts = new ArrayCollection();
  146.         $this->contacts = new ArrayCollection();
  147.         $this->preOrders = new ArrayCollection();
  148.         $this->loadInvoices = new ArrayCollection();
  149.         $this->organization = new ArrayCollection();
  150.         $this->agreements = new ArrayCollection();
  151.         $this->accountAddresses = new ArrayCollection();
  152.         $this->accountWorkers = new ArrayCollection();
  153.         $this->jobs = new ArrayCollection();
  154.         $this->accountJobsLists = new ArrayCollection();
  155.     }
  156.     public function getId(): ?int
  157.     {
  158.         return $this->id;
  159.     }
  160.     public function getName(): ?string
  161.     {
  162.         return $this->name;
  163.     }
  164.     public function setName(string $name): self
  165.     {
  166.         $this->name $name;
  167.         return $this;
  168.     }
  169.     public function getDateEntered(): ?\DateTimeInterface
  170.     {
  171.         return $this->date_entered;
  172.     }
  173.     public function setDateEntered(?\DateTimeInterface $date_entered): self
  174.     {
  175.         $this->date_entered $date_entered;
  176.         return $this;
  177.     }
  178.     public function getDateModified(): ?\DateTimeInterface
  179.     {
  180.         return $this->date_modified;
  181.     }
  182.     public function setDateModified(?\DateTimeInterface $date_modified): self
  183.     {
  184.         $this->date_modified $date_modified;
  185.         return $this;
  186.     }
  187.     public function getModifiedUserId(): ?int
  188.     {
  189.         return $this->modified_user_id;
  190.     }
  191.     public function setModifiedUserId(?int $modified_user_id): self
  192.     {
  193.         $this->modified_user_id $modified_user_id;
  194.         return $this;
  195.     }
  196.     public function getCreatedBy(): ?int
  197.     {
  198.         return $this->created_by;
  199.     }
  200.     public function setCreatedBy(int $created_by): self
  201.     {
  202.         $this->created_by $created_by;
  203.         return $this;
  204.     }
  205.     public function getDescription(): ?string
  206.     {
  207.         return $this->description;
  208.     }
  209.     public function setDescription(?string $description): self
  210.     {
  211.         $this->description $description;
  212.         return $this;
  213.     }
  214.     public function getDeleted(): ?int
  215.     {
  216.         return $this->deleted;
  217.     }
  218.     public function setDeleted(?int $deleted): self
  219.     {
  220.         $this->deleted $deleted;
  221.         return $this;
  222.     }
  223.     public function getAssignedUserId(): ?int
  224.     {
  225.         return $this->assigned_user_id;
  226.     }
  227.     public function setAssignedUserId(?int $assigned_user_id): self
  228.     {
  229.         $this->assigned_user_id $assigned_user_id;
  230.         return $this;
  231.     }
  232.     public function getEdrpou(): ?string
  233.     {
  234.         return $this->edrpou;
  235.     }
  236.     public function setEdrpou(?string $edrpou): self
  237.     {
  238.         $this->edrpou $edrpou;
  239.         return $this;
  240.     }
  241.     public function getBillingAddressCity(): ?string
  242.     {
  243.         return $this->billing_address_city;
  244.     }
  245.     public function setBillingAddressCity(?string $billing_address_city): self
  246.     {
  247.         $this->billing_address_city $billing_address_city;
  248.         return $this;
  249.     }
  250.     public function getBillingAddressState(): ?string
  251.     {
  252.         return $this->billing_address_state;
  253.     }
  254.     public function setBillingAddressState(?string $billing_address_state): self
  255.     {
  256.         $this->billing_address_state $billing_address_state;
  257.         return $this;
  258.     }
  259.     public function getBillingAddressCountry(): ?string
  260.     {
  261.         return $this->billing_address_country;
  262.     }
  263.     public function setBillingAddressCountry(?string $billing_address_country): self
  264.     {
  265.         $this->billing_address_country $billing_address_country;
  266.         return $this;
  267.     }
  268.     public function getBillingAddressStreet(): ?string
  269.     {
  270.         return $this->billing_address_street;
  271.     }
  272.     public function setBillingAddressStreet(?string $billing_address_street): self
  273.     {
  274.         $this->billing_address_street $billing_address_street;
  275.         return $this;
  276.     }
  277.     public function getPhone(): ?string
  278.     {
  279.         return $this->phone;
  280.     }
  281.     public function setPhone(?string $phone): self
  282.     {
  283.         $this->phone $phone;
  284.         return $this;
  285.     }
  286.     /**
  287.      * @return Collection<int, Orders>
  288.      */
  289.     public function getOrders(): Collection
  290.     {
  291.         return $this->orders;
  292.     }
  293.     public function addOrder(Orders $order): self
  294.     {
  295.         if (!$this->orders->contains($order)) {
  296.             $this->orders->add($order);
  297.             $order->setAccountId($this);
  298.         }
  299.         return $this;
  300.     }
  301.     public function removeOrder(Orders $order): self
  302.     {
  303.         if ($this->orders->removeElement($order)) {
  304.             // set the owning side to null (unless already changed)
  305.             if ($order->getAccountId() === $this) {
  306.                 $order->setAccountId(null);
  307.             }
  308.         }
  309.         return $this;
  310.     }
  311.     public function getUser(): ?User
  312.     {
  313.         return $this->user;
  314.     }
  315.     public function setUser(?User $user): self
  316.     {
  317.         $this->user $user;
  318.         return $this;
  319.     }
  320.     /**
  321.      * @return Collection<int, IncomingInvoice>
  322.      */
  323.     public function getInvoiceSupplier(): Collection
  324.     {
  325.         return $this->invoice_supplier;
  326.     }
  327.     public function addInvoiceSupplier(IncomingInvoice $invoiceSupplier): self
  328.     {
  329.         if (!$this->invoice_supplier->contains($invoiceSupplier)) {
  330.             $this->invoice_supplier->add($invoiceSupplier);
  331.             $invoiceSupplier->setSupplier($this);
  332.         }
  333.         return $this;
  334.     }
  335.     public function removeInvoiceSupplier(IncomingInvoice $invoiceSupplier): self
  336.     {
  337.         if ($this->invoice_supplier->removeElement($invoiceSupplier)) {
  338.             // set the owning side to null (unless already changed)
  339.             if ($invoiceSupplier->getSupplier() === $this) {
  340.                 $invoiceSupplier->setSupplier(null);
  341.             }
  342.         }
  343.         return $this;
  344.     }
  345.     public function getIpn(): ?string
  346.     {
  347.         return $this->ipn;
  348.     }
  349.     public function setIpn(?string $ipn): self
  350.     {
  351.         $this->ipn $ipn;
  352.         return $this;
  353.     }
  354.     public function getType(): ?string
  355.     {
  356.         return $this->type;
  357.     }
  358.     public function setType(?string $type): self
  359.     {
  360.         $this->type $type;
  361.         return $this;
  362.     }
  363.     public function getParent(): ?self
  364.     {
  365.         return $this->parent;
  366.     }
  367.     public function setParent(?self $parent): self
  368.     {
  369.         $this->parent $parent;
  370.         return $this;
  371.     }
  372.     /**
  373.      * @return Collection<int, self>
  374.      */
  375.     public function getAccounts(): Collection
  376.     {
  377.         return $this->accounts;
  378.     }
  379.     public function addAccount(self $account): self
  380.     {
  381.         if (!$this->accounts->contains($account)) {
  382.             $this->accounts->add($account);
  383.             $account->setParent($this);
  384.         }
  385.         return $this;
  386.     }
  387.     public function removeAccount(self $account): self
  388.     {
  389.         if ($this->accounts->removeElement($account)) {
  390.             // set the owning side to null (unless already changed)
  391.             if ($account->getParent() === $this) {
  392.                 $account->setParent(null);
  393.             }
  394.         }
  395.         return $this;
  396.     }
  397.     public function getDirector(): ?string
  398.     {
  399.         return $this->director;
  400.     }
  401.     public function setDirector(?string $director): self
  402.     {
  403.         $this->director $director;
  404.         return $this;
  405.     }
  406.     public function getCode1c(): ?string
  407.     {
  408.         return $this->code1c;
  409.     }
  410.     public function setCode1c(?string $code1c): self
  411.     {
  412.         $this->code1c $code1c;
  413.         return $this;
  414.     }
  415.     /**
  416.      * @return Collection<int, Contacts>
  417.      */
  418.     public function getContacts(): Collection
  419.     {
  420.         return $this->contacts;
  421.     }
  422.     public function addContact(Contacts $contact): self
  423.     {
  424.         if (!$this->contacts->contains($contact)) {
  425.             $this->contacts->add($contact);
  426.             $contact->setAccount($this);
  427.         }
  428.         return $this;
  429.     }
  430.     public function removeContact(Contacts $contact): self
  431.     {
  432.         if ($this->contacts->removeElement($contact)) {
  433.             // set the owning side to null (unless already changed)
  434.             if ($contact->getAccount() === $this) {
  435.                 $contact->setAccount(null);
  436.             }
  437.         }
  438.         return $this;
  439.     }
  440.     public function getManager(): ?User
  441.     {
  442.         return $this->manager;
  443.     }
  444.     public function setManager(?User $manager): self
  445.     {
  446.         $this->manager $manager;
  447.         return $this;
  448.     }
  449.     /**
  450.      * @return Collection<int, PreOrder>
  451.      */
  452.     public function getPreOrders(): Collection
  453.     {
  454.         return $this->preOrders;
  455.     }
  456.     public function addPreOrder(PreOrder $preOrder): self
  457.     {
  458.         if (!$this->preOrders->contains($preOrder)) {
  459.             $this->preOrders->add($preOrder);
  460.             $preOrder->setAccount($this);
  461.         }
  462.         return $this;
  463.     }
  464.     public function removePreOrder(PreOrder $preOrder): self
  465.     {
  466.         if ($this->preOrders->removeElement($preOrder)) {
  467.             // set the owning side to null (unless already changed)
  468.             if ($preOrder->getAccount() === $this) {
  469.                 $preOrder->setAccount(null);
  470.             }
  471.         }
  472.         return $this;
  473.     }
  474.     /**
  475.      * @return Collection<int, LoadInvoice>
  476.      */
  477.     public function getLoadInvoices(): Collection
  478.     {
  479.         return $this->loadInvoices;
  480.     }
  481.     public function addLoadInvoice(LoadInvoice $loadInvoice): self
  482.     {
  483.         if (!$this->loadInvoices->contains($loadInvoice)) {
  484.             $this->loadInvoices->add($loadInvoice);
  485.             $loadInvoice->setAccount($this);
  486.         }
  487.         return $this;
  488.     }
  489.     public function removeLoadInvoice(LoadInvoice $loadInvoice): self
  490.     {
  491.         if ($this->loadInvoices->removeElement($loadInvoice)) {
  492.             // set the owning side to null (unless already changed)
  493.             if ($loadInvoice->getAccount() === $this) {
  494.                 $loadInvoice->setAccount(null);
  495.             }
  496.         }
  497.         return $this;
  498.     }
  499.     /**
  500.      * @return Collection<int, Agreements>
  501.      */
  502.     public function getOrganization(): Collection
  503.     {
  504.         return $this->organization;
  505.     }
  506.     public function addOrganization(Agreements $organization): self
  507.     {
  508.         if (!$this->organization->contains($organization)) {
  509.             $this->organization->add($organization);
  510.             $organization->setOrganization($this);
  511.         }
  512.         return $this;
  513.     }
  514.     public function removeOrganization(Agreements $organization): self
  515.     {
  516.         if ($this->organization->removeElement($organization)) {
  517.             // set the owning side to null (unless already changed)
  518.             if ($organization->getOrganization() === $this) {
  519.                 $organization->setOrganization(null);
  520.             }
  521.         }
  522.         return $this;
  523.     }
  524.     /**
  525.      * @return Collection<int, Agreements>
  526.      */
  527.     public function getAgreements(): Collection
  528.     {
  529.         return $this->agreements;
  530.     }
  531.     public function addAgreement(Agreements $agreement): self
  532.     {
  533.         if (!$this->agreements->contains($agreement)) {
  534.             $this->agreements->add($agreement);
  535.             $agreement->setAccount($this);
  536.         }
  537.         return $this;
  538.     }
  539.     public function removeAgreement(Agreements $agreement): self
  540.     {
  541.         if ($this->agreements->removeElement($agreement)) {
  542.             // set the owning side to null (unless already changed)
  543.             if ($agreement->getAccount() === $this) {
  544.                 $agreement->setAccount(null);
  545.             }
  546.         }
  547.         return $this;
  548.     }
  549.     public function getVirtualAgreementSpecfication(): ?Agreements
  550.     {
  551.         return $this->virtualAgreementSpecfication;
  552.     }
  553.     public function setVirtualAgreementSpecfication(?Agreements $virtualAgreementSpecfication): static
  554.     {
  555.         $this->virtualAgreementSpecfication $virtualAgreementSpecfication;
  556.         return $this;
  557.     }
  558.     /**
  559.      * @return Collection<int, AccountAddress>
  560.      */
  561.     public function getAccountAddresses(): Collection
  562.     {
  563.         return $this->accountAddresses;
  564.     }
  565.     public function addAccountAddress(AccountAddress $accountAddress): self
  566.     {
  567.         if (!$this->accountAddresses->contains($accountAddress)) {
  568.             $this->accountAddresses->add($accountAddress);
  569.             $accountAddress->setAccount($this);
  570.         }
  571.         return $this;
  572.     }
  573.     public function removeAccountAddress(AccountAddress $accountAddress): self
  574.     {
  575.         if ($this->accountAddresses->removeElement($accountAddress)) {
  576.             // set the owning side to null (unless already changed)
  577.             if ($accountAddress->getAccount() === $this) {
  578.                 $accountAddress->setAccount(null);
  579.             }
  580.         }
  581.         return $this;
  582.     }
  583.     /**
  584.      * @return Collection<int, AccountWorker>
  585.      */
  586.     public function getAccountWorkers(): Collection
  587.     {
  588.         return $this->accountWorkers;
  589.     }
  590.     public function addAccountWorker(AccountWorker $accountWorker): self
  591.     {
  592.         if (!$this->accountWorkers->contains($accountWorker)) {
  593.             $this->accountWorkers->add($accountWorker);
  594.             $accountWorker->setAccount($this);
  595.         }
  596.         return $this;
  597.     }
  598.     public function removeAccountWorker(AccountWorker $accountWorker): self
  599.     {
  600.         if ($this->accountWorkers->removeElement($accountWorker)) {
  601.             // set the owning side to null (unless already changed)
  602.             if ($accountWorker->getAccount() === $this) {
  603.                 $accountWorker->setAccount(null);
  604.             }
  605.         }
  606.         return $this;
  607.     }
  608.     /**
  609.      * @return Collection<int, Jobs>
  610.      */
  611.     public function getJobs(): Collection
  612.     {
  613.         return $this->jobs;
  614.     }
  615.     public function addJob(Jobs $job): self
  616.     {
  617.         if (!$this->jobs->contains($job)) {
  618.             $this->jobs->add($job);
  619.             $job->setAccount($this);
  620.         }
  621.         return $this;
  622.     }
  623.     public function removeJob(Jobs $job): self
  624.     {
  625.         if ($this->jobs->removeElement($job)) {
  626.             // set the owning side to null (unless already changed)
  627.             if ($job->getAccount() === $this) {
  628.                 $job->setAccount(null);
  629.             }
  630.         }
  631.         return $this;
  632.     }
  633.     /**
  634.      * @return Collection<int, AccountJobsList>
  635.      */
  636.     public function getAccountJobsLists(): Collection
  637.     {
  638.         return $this->accountJobsLists;
  639.     }
  640.     public function addAccountJobsList(AccountJobsList $accountJobsList): self
  641.     {
  642.         if (!$this->accountJobsLists->contains($accountJobsList)) {
  643.             $this->accountJobsLists->add($accountJobsList);
  644.             $accountJobsList->setAccount($this);
  645.         }
  646.         return $this;
  647.     }
  648.     public function removeAccountJobsList(AccountJobsList $accountJobsList): self
  649.     {
  650.         if ($this->accountJobsLists->removeElement($accountJobsList)) {
  651.             // set the owning side to null (unless already changed)
  652.             if ($accountJobsList->getAccount() === $this) {
  653.                 $accountJobsList->setAccount(null);
  654.             }
  655.         }
  656.         return $this;
  657.     }
  658. }