Skip to content

Instantly share code, notes, and snippets.

package com.cyant.chat.protocol;
import com.cyant.chat.CustomerEvents;
import com.cyant.chat.events.customer.InitiateEvent;
import com.cyant.chat.modal.CustomerUser;
import com.cyant.chat.modal.Organisation;
import com.cyant.chat.protocol.listener.CustomerActivity;
import com.cyant.chat.service.OrganisationService;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
package com.cyant.chat.protocol.listener;
import com.cyant.chat.modal.Customer;
import com.cyant.chat.modal.customer.Activity;
import com.fasterxml.jackson.databind.JsonNode;
import org.atmosphere.cpr.AtmosphereRequest;
import org.atmosphere.cpr.AtmosphereResource;
import org.atmosphere.cpr.AtmosphereResourceEvent;
import org.atmosphere.cpr.AtmosphereResourceEventListenerAdapter;
import org.slf4j.Logger;
package com.cyant.chat.protocol;
import com.cyant.chat.Organisation;
import com.cyant.chat.event.ErrorEvent;
import com.cyant.chat.user.CustomerUser;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.fge.jackson.JsonLoader;
import org.atmosphere.cache.UUIDBroadcasterCache;
import org.atmosphere.client.TrackMessageSizeInterceptor;
package com.cyant.chat.protocol;
import com.cyant.chat.Organisation;
import com.cyant.chat.event.ErrorEvent;
import com.cyant.chat.user.OperatorUser;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.fge.jackson.JsonLoader;
import org.atmosphere.cache.UUIDBroadcasterCache;
import org.atmosphere.client.TrackMessageSizeInterceptor;
package com.cyant.chat;
import com.cyant.chat.event.operator.AddCustomerEvent;
import com.cyant.chat.user.CustomerUser;
import com.cyant.chat.user.OperatorUser;
import org.atmosphere.cpr.*;
import java.util.ArrayList;
import java.util.Collection;
<?php
/**
* @author Antoine Hedgecock <[email protected]>
*
* @copyright PMG Media Group AB
*/
namespace User\Controller;
use MCNStdlib\Interfaces\UserServiceInterface;
public function yourMethodName()
{
$builder = $this->getEntityManager()->createQueryBuilder();
$builder->from('Module\Entity\Entity', 'entity');
$builder->select('entity');
$builder->leftJoin('entity.relation', 'relation');
$builder->addSelect('relation');
return $builder->getQuery()->getResult();
}
<?php
/**
* @author Antoine Hedgecock <[email protected]>
* @author Jonas Eriksson <[email protected]>
*
* @copyright PMG Media Group AB
*/
namespace Acl;
<?php
/**
* @author Antoine Hedgecock <[email protected]>
* @author Jonas Eriksson <[email protected]>
*
* @copyright PMG Media Group AB
*/
namespace Domain\Repository\SqlWalker;
// account status
$form->add(array(
'name' => 'enabled',
'type' => 'Zend\Form\Element\Select',
'options' => array(
'value_options' => array(
array(
'value' => 99,
'label' => 'French',