public function create($data) { //var_dump($data); exit; $this->cleanData($data); $profileBank = new ProfileBank(); $profileBank->setData($data); $profileBank->save($this->getEntityManager()); return new JsonModel(['bankinfo' => $profileBank->getData()]); }
public function getData() { if ($this->client->getEmployer()) { $client = $this->client->getEmployer()->getData(); } else { if ($this->client->getFreelancer()) { $client = $this->client->getFreelancer()->getData(); } else { $client = null; } } return ['client' => $client, 'createDate' => $this->createDate, 'payDate' => $this->payDate, 'intrans_no' => $this->intrans_no, 'fapiao_no' => $this->fapiao_no, 'is_deleted' => $this->is_deleted, 'fee' => $this->fee, 'total' => $this->total, 'subtotal' => $this->subtotal, 'bank' => $this->bank->getData(), 'bankuser' => $this->bankuser, 'tasks' => $this->tasks, 'id' => $this->id]; }
public function getData() { return ['client' => $this->client->getEmployer() ? $this->client->getEmployer()->getData() : null, 'createDate' => $this->createDate, 'payDate' => $this->payDate, 'intrans_no' => $this->intrans_no, 'fapiao_no' => $this->fapiao_no, 'is_deleted' => $this->is_deleted, 'fee' => $this->fee, 'total' => $this->total, 'subtotal' => $this->subtotal, 'bank' => $this->bank->getData(), 'projects' => $this->projects]; }
public function getData() { return ['id' => $this->id, 'client' => $this->client ? $this->client->getEmployer()->getData() : null, 'freelancer' => $this->freelancer ? $this->freelancer->getData() : null, 'createDate' => $this->createDate, 'payDate' => $this->payDate, 'intrans_no' => $this->intrans_no, 'fapiao_no' => $this->fapiao_no, 'is_deleted' => $this->is_deleted, 'fee' => $this->fee, 'total' => $this->total, 'subtotal' => $this->subtotal, 'bank' => $this->bank->getData(), 'bankuser' => $this->bankuser, 'items' => $this->items ? $this->items : null, 'typeStatus' => $this->typeStatus, 'currency' => $this->currency]; }