public function addEvent(
        ContactClient $contactClient = null,
        $type = null,
        Contact $contact = null,
        $logs = null,
        $message = null,
        $integrationEntityId = null
    ) {
        $event = new EventEntity();
        $event->setDateAdded(new \DateTime());
        if ($type) {
            $event->setType($type);
        }
        if ($contactClient) {
            $event->setContactClientId($contactClient->getId());
        }
        if ($contact) {
            $event->setContact($contact);
        }
        if ($logs) {
            $event->setLogs($logs);
        }
        if ($message) {
            $event->setMessage($message);
        }
        if ($integrationEntityId) {
            $event->setIntegrationEntityId($integrationEntityId);
        }

        $this->getEventRepository()->saveEntity($event);
    }
public function addEvent(
        ContactClient $contactClient = null,
        $type = null,
        Contact $contact = null,
        $logs = null,
        $message = null,
        $integrationEntityId = null
    ) {
        $event = new EventEntity();
        $event->setDateAdded(new \DateTime());
        if ($type) {
            $event->setType($type);
        }
        if ($contactClient) {
            $event->setContactClientId($contactClient->getId());
        }
        if ($contact) {
            $event->setContact($contact);
        }
        if ($logs) {
            $event->setLogs($logs);
        }
        if ($message) {
            $event->setMessage($message);
        }
        if ($integrationEntityId) {
            $event->setIntegrationEntityId($integrationEntityId);
        }

        $this->getEventRepository()->saveEntity($event);
    }
public function addEvent ( ContactClient $ contactClient = null , $ type = null , Contact $ contact = null , $ logs = null , $ message = null , $ integrationEntityId = null ) { $ event = new EventEntity ( ) ; $ event -> setDateAdded ( new \ DateTime ( ) ) ; if ( $ type ) { $ event -> setType ( $ type ) ; } if ( $ contactClient ) { $ event -> setContactClientId ( $ contactClient -> getId ( ) ) ; } if ( $ contact ) { $ event -> setContact ( $ contact ) ; } if ( $ logs ) { $ event -> setLogs ( $ logs ) ; } if ( $ message ) { $ event -> setMessage ( $ message ) ; } if ( $ integrationEntityId ) { $ event -> setIntegrationEntityId ( $ integrationEntityId ) ; } $ this -> getEventRepository ( ) -> saveEntity ( $ event ) ; }
Add transactional log in contactclient_events.

@param ContactClient|null $contactClient
@param string             $type
@param Contact|null       $contact
@param null               $logs
@param null               $message
@param null               $integrationEntityId
Add transactional log in contactclient_events .