コード例 #1
0
 private function createActivity(User $client, $message, $amount)
 {
     $activity = new Activity();
     $activity->setClientUserId($client->getId());
     $activity->setClientStatus($client->getProfile()->getClientStatus());
     $activity->setFirstName($client->getFirstName());
     $activity->setLastName($client->getLastName());
     $activity->setRiaUserId($client->getRia()->getId());
     $activity->setAmount($amount);
     $activity->setMessage($message);
     $activity->setCreatedAt(new \DateTime());
     return $activity;
 }