Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 27 total)
  • Author
    Replies

  • dimitri.seguin17
    Participant

    Hello, I have the same problem, this was resolved ?

    in reply to: Customer Satisfaction #36800

    dimitri.seguin17
    Participant

    In your future roadmap, in the category “Marketing”, there “Customer Satisfaction and Engagement Metrics”.
    It’s a satisfaction form or other ? And when it will be developed ?

    Thanks for your response.

    in reply to: Maximum business unit #33944

    dimitri.seguin17
    Participant

    Hello,

    Finaly i understand that the performance problem came from the method OwnerTreeListener:checkEntities() that consider the OwerTreeProvider cache must be invalidate because the User Entity was change. Fields login_count and last_login were change due to login but theses two fields are not involved in the cache calculation.
    So i modified the OwnerTreeListener:checkEntities() like below to exclude theses fields of the changes check.
    With modifications the OwerTreeProvider cache is no more rebuild at each login and i have no more performance issue when i import a lot of Business Unit.


    protected function checkEntities(array $entities)
    {
    $uow = $this->container->get('doctrine.orm.entity_manager')->getUnitOfWork();

    foreach ($entities as $entity) {
    if (in_array(ClassUtils::getRealClass($entity), $this->securityClasses, true)) {
    if(get_class($entity) == 'Oro\Bundle\UserBundle\Entity\User') {
    $att = $uow->getEntityChangeSet($entity);
    if(!array_key_exists('lastLogin', $att) && !array_key_exists('loginCount', $att) && count($att) === 2) {
    return true;
    }
    }
    }
    }
    return false;
    }

    I also import Business Unit with a cli import command that create new BusinessUnit with the following code :

    public function addBusinessUnit($name, $business_unit_owner_id = null, $phone = null, $website = null, $email = null, $fax = null)
    {
    $businessUnit = new BusinessUnit();

    $businessUnit->setOrganization($this->organization_manager->getOrganizationById(1));
    $businessUnit->setName($name);
    $businessUnit->setPhone($phone);
    $businessUnit->setWebsite($website);
    $businessUnit->setEmail($email);
    $businessUnit->setFax($fax);
    $businessUnit->setOwner($business_unit_owner_id);

    $this->em->persist($businessUnit);
    $this->em->flush();

    return $businessUnit;
    }

    I notice that the OwerTreeProvider cache was not clear when i import BusinessUnit through doctrine persist().
    So i also change the AbstractOwnerTreeProvider::ensureTreeLoaded() to be public instead of protected to call this method at the end of my Business Import Script.

    Should i make a pull request with theses two changes in the ORO code ?

    Thanks for your reply,
    Regards,

    Dimitri

    in reply to: new role with new entities #35525

    dimitri.seguin17
    Participant

    anyone ?

    in reply to: Maximum business unit #33943

    dimitri.seguin17
    Participant

    Hi Dima,

    Thanks for your answer.
    i will try to be more understandable :)

    I don’t want to change the scope of the ownershop type.
    I just suggest to change the scope of the cache that is construct when a user load. To allow all user to shared the same cache objet.
    And update this cache at right change instead of user login.
    But i’m not sure to understand all the implications of this change.
    Maybe there is a better way to fix the performance issue i have when i add a lot of business unit in my instance.
    What was the best way to build this cache object at an another moment than the user login ?

    Thanks in advance,
    Regards

    Dimitri

    in reply to: Maximum business unit #33941

    dimitri.seguin17
    Participant

    Hello, I want to update oroplatform code.

    I want to change a user scope to global scope. In fact, warm the cache for all sessions and not for one session.

    And when I have new business unit, whether rewarm all cache or just update cache with a new business unit.

    It’s a good idea or not ?

    in reply to: new role with new entities #35524

    dimitri.seguin17
    Participant

    In the table “acl_entries”, I see my role with entities and with a mask.

    in reply to: new role with new entities #35523

    dimitri.seguin17
    Participant

    I delete my migration and role in SQL. I use oro:migration:data:load command but it’s a same problem.

    This is my roles.yml

    ROLE_TOURISTIC_PROVIDER:
    label: Touristic provider
    permissions:
    entity|OroCRM\Bundle\AccountBundle\Entity\Account: []
    entity|Oro\Bundle\OrganizationBundle\Entity\BusinessUnit: [VIEW_LOCAL, EDIT_LOCAL]
    entity|Oro\Bundle\CalendarBundle\Entity\Calendar: []
    entity|Oro\Bundle\CalendarBundle\Entity\CalendarEvent: []
    entity|Oro\Bundle\IntegrationBundle\Entity\Channel: []
    entity|OroCRM\Bundle\ContactBundle\Entity\Contact: []
    entity|OroCRM\Bundle\ContactBundle\Entity\Group: []
    entity|Oro\Bundle\EmailBundle\Entity\Email: [CREATE_SYSTEM, VIEW_SYSTEM]
    entity|Oro\Bundle\EmbeddedFormBundle\Entity\EmbeddedForm: []
    entity|Oro\Bundle\UserBundle\Entity\Group: []
    entity|Oro\Bundle\NotificationBundle\Entity\EmailNotification: []
    entity|Oro\Bundle\OrganizationBundle\Entity\Organization: []
    entity|Oro\Bundle\ReportBundle\Entity\Report: []
    entity|Oro\Bundle\UserBundle\Entity\Role: []
    entity|Oro\Bundle\SegmentBundle\Entity\Segment: []
    entity|Oro\Bundle\TagBundle\Entity\Tag: []
    entity|Oro\Bundle\EmailBundle\Entity\EmailTemplate: [VIEW_LOCAL, CREATE_LOCAL, EDIT_LOCAL, DELETE_LOCAL]
    entity|Oro\Bundle\UserBundle\Entity\User: []
    entity|Oro\Bundle\WorkflowBundle\Entity\WorkflowDefinition: [VIEW_SYSTEM]
    entity|Oro\Bundle\DashboardBundle\Entity\Dashboard: [VIEW_LOCAL, CREATE_LOCAL, EDIT_LOCAL, DELETE_LOCAL, ASSIGN_LOCAL]
    entity|Oro\Bundle\TrackingBundle\Entity\TrackingWebsite: []
    entity|OroCRM\Bundle\MarketingListBundle\Entity\MarketingList: [VIEW_LOCAL, CREATE_LOCAL, EDIT_LOCAL, DELETE_LOCAL]
    entity|Rc\ApiMyAccountBundle\Entity\AsksFor: [VIEW_LOCAL]
    entity|Rc\ApiMyAccountBundle\Entity\Booked: [VIEW_LOCAL]
    entity|Rc\ApiMyAccountBundle\Entity\Bookmark: [VIEW_LOCAL]
    entity|Rc\ApiMyAccountBundle\Entity\LoginStatus: [VIEW_LOCAL]
    entity|Rc\ApiMyAccountBundle\Entity\Message: [VIEW_LOCAL]
    entity|Rc\ApiMyAccountBundle\Entity\OptIn: [VIEW_LOCAL]
    entity|Rc\ApiMyAccountBundle\Entity\PhysicalWelcome: [VIEW_LOCAL]
    entity|Rc\ApiMyAccountBundle\Entity\Planning: [VIEW_LOCAL]
    entity|Rc\ApiMyAccountBundle\Entity\Review: [VIEW_LOCAL]
    entity|Rc\ApiMyAccountBundle\Entity\SocialNetworkSharing: [VIEW_LOCAL]
    entity|Rc\ApiMyAccountBundle\Entity\Ticket: [VIEW_LOCAL]
    entity|Rc\ApiMyAccountBundle\Entity\Tourist: [VIEW_LOCAL]
    entity|Rc\ApiMyAccountBundle\Entity\View: [VIEW_LOCAL]
    entity|Rc\ApiMyAccountBundle\Entity\Voucher: [VIEW_LOCAL]
    entity|Rc\ApiMyAccountBundle\Entity\WebContact: [VIEW_LOCAL]
    entity|Rc\ApiMyAccountBundle\Entity\WebsiteVisited: [VIEW_LOCAL]
    action|oro_dataaudit_history: []
    action|oro_importexport_export: [EXECUTE]
    action|oro_importexport: [EXECUTE]
    action|oro_importexport_import: [EXECUTE]
    action|oro_jobs: []
    action|oro_entityconfig_manage: []
    action|oro_entity_merge: []
    action|oro_address_dictionaries_read: []
    action|oro_search: []
    action|oro_config_system: []
    action|oro_platform_system_info: []
    action|oro_tag_assign_unassign: []
    action|oro_tag_unassign_global: []
    action|oro_tag_view_tag_cloud: []
    action|oro_workflow: [EXECUTE]

    ROLE_DMO:
    label: Touristic office
    permissions:
    entity|OroCRM\Bundle\AccountBundle\Entity\Account: []
    entity|Oro\Bundle\OrganizationBundle\Entity\BusinessUnit: [VIEW_DEEP, CREATE_DEEP, EDIT_DEEP]
    entity|Oro\Bundle\CalendarBundle\Entity\Calendar: []
    entity|Oro\Bundle\CalendarBundle\Entity\CalendarEvent: []
    entity|Oro\Bundle\IntegrationBundle\Entity\Channel: []
    entity|OroCRM\Bundle\ContactBundle\Entity\Contact: []
    entity|OroCRM\Bundle\ContactBundle\Entity\Group: []
    entity|Oro\Bundle\EmailBundle\Entity\Email: [CREATE_SYSTEM, VIEW_SYSTEM]
    entity|Oro\Bundle\EmbeddedFormBundle\Entity\EmbeddedForm: []
    entity|Oro\Bundle\UserBundle\Entity\Group: []
    entity|Oro\Bundle\NotificationBundle\Entity\EmailNotification: []
    entity|Oro\Bundle\OrganizationBundle\Entity\Organization: []
    entity|Oro\Bundle\ReportBundle\Entity\Report: []
    entity|Oro\Bundle\UserBundle\Entity\Role: []
    entity|Oro\Bundle\SegmentBundle\Entity\Segment: []
    entity|Oro\Bundle\TagBundle\Entity\Tag: []
    entity|Oro\Bundle\EmailBundle\Entity\EmailTemplate: [VIEW_DEEP, CREATE_DEEP, EDIT_DEEP, DELETE_DEEP]
    entity|Oro\Bundle\UserBundle\Entity\User: []
    entity|Oro\Bundle\WorkflowBundle\Entity\WorkflowDefinition: [VIEW_SYSTEM]
    entity|Oro\Bundle\DashboardBundle\Entity\Dashboard: [VIEW_DEEP, CREATE_DEEP, EDIT_DEEP, DELETE_DEEP]
    entity|Oro\Bundle\TrackingBundle\Entity\TrackingWebsite: []
    entity|OroCRM\Bundle\MarketingListBundle\Entity\MarketingList: [VIEW_DEEP, CREATE_DEEP, EDIT_DEEP, DELETE_DEEP]
    entity|Rc\ApiMyAccountBundle\Entity\AsksFor: [VIEW_DEEP]
    entity|Rc\ApiMyAccountBundle\Entity\Booked: [VIEW_DEEP]
    entity|Rc\ApiMyAccountBundle\Entity\Bookmark: [VIEW_DEEP]
    entity|Rc\ApiMyAccountBundle\Entity\LoginStatus: [VIEW_DEEP]
    entity|Rc\ApiMyAccountBundle\Entity\Message: [VIEW_DEEP]
    entity|Rc\ApiMyAccountBundle\Entity\OptIn: [VIEW_DEEP]
    entity|Rc\ApiMyAccountBundle\Entity\PhysicalWelcome: [VIEW_DEEP]
    entity|Rc\ApiMyAccountBundle\Entity\Planning: [VIEW_DEEP]
    entity|Rc\ApiMyAccountBundle\Entity\Review: [VIEW_DEEP]
    entity|Rc\ApiMyAccountBundle\Entity\SocialNetworkSharing: [VIEW_DEEP]
    entity|Rc\ApiMyAccountBundle\Entity\Ticket: [VIEW_DEEP]
    entity|Rc\ApiMyAccountBundle\Entity\Tourist: [VIEW_DEEP]
    entity|Rc\ApiMyAccountBundle\Entity\View: [VIEW_DEEP]
    entity|Rc\ApiMyAccountBundle\Entity\Voucher: [VIEW_DEEP]
    entity|Rc\ApiMyAccountBundle\Entity\WebContact: [VIEW_DEEP]
    entity|Rc\ApiMyAccountBundle\Entity\WebsiteVisited: [VIEW_DEEP]
    action|oro_dataaudit_history: []
    action|oro_importexport_export: [EXECUTE]
    action|oro_importexport: [EXECUTE]
    action|oro_importexport_import: [EXECUTE]
    action|oro_jobs: []
    action|oro_entityconfig_manage: []
    action|oro_entity_merge: []
    action|oro_address_dictionaries_read: []
    action|oro_search: []
    action|oro_config_system: []
    action|oro_platform_system_info: []
    action|oro_tag_assign_unassign: []
    action|oro_tag_unassign_global: []
    action|oro_tag_view_tag_cloud: []
    action|oro_workflow: [EXECUTE]

    and a migration script

    class LoadNewRolesData extends AbstractFixture implements DependentFixtureInterface, ContainerAwareInterface
    {
    /**
    * @var ContainerInterface
    */
    protected $container;

    /**
    * {@inheritdoc}
    */
    public function getDependencies()
    {
    return [
    'Oro\Bundle\OrganizationBundle\Migrations\Data\ORM\LoadOrganizationAndBusinessUnitData',
    'Oro\Bundle\UserBundle\Migrations\Data\ORM\LoadRolesData'
    ];
    }

    /**
    * {@inheritdoc}
    */
    public function setContainer(ContainerInterface $container = null)
    {
    $this->container = $container;
    }

    /**
    * Load roles
    *
    * @param \Doctrine\Common\Persistence\ObjectManager $manager
    */
    public function load(ObjectManager $manager)
    {
    /** @var AclManager $manager */
    $aclManager = $this->container->get('oro_security.acl.manager');

    $fileName = $this->container
    ->get('kernel')
    ->locateResource('@RcApiMyAccountBundle/Migrations/Data/ORM/CrmRoles/roles.yml');

    $fileName = str_replace('/', DIRECTORY_SEPARATOR, $fileName);
    $rolesData = Yaml::parse($fileName);

    foreach ($rolesData as $roleName => $roleConfigData) {
    if (isset($roleConfigData['bap_role'])) {
    $role = $manager->getRepository('OroUserBundle:Role')
    ->findOneBy(['role' => $roleConfigData['bap_role']]);
    } else {
    $role = new Role($roleName);
    }

    $role->setLabel($roleConfigData['label']);
    $manager->persist($role);

    if ($aclManager->isAclEnabled()) {
    $sid = $aclManager->getSid($role);
    foreach ($roleConfigData['permissions'] as $permission => $acls) {
    $oid = $aclManager->getOid(str_replace('|', ':', $permission));
    $builder = $aclManager->getMaskBuilder($oid);
    $mask = $builder->reset()->get();
    if (!empty($acls)) {
    foreach ($acls as $acl) {
    $mask = $builder->add($acl)->get();
    }
    }

    $aclManager->setPermission($sid, $oid, $mask);
    }
    }
    }

    $aclManager->flush();
    $manager->flush();
    }
    }

    in reply to: new role with new entities #35521

    dimitri.seguin17
    Participant

    Nobody can help me?

    in reply to: Error with acl #33994

    dimitri.seguin17
    Participant

    Ok thank’s for your reply, the application is ok now.

    in reply to: How to create Email Campaigns #26745

    dimitri.seguin17
    Participant

    Hello,

    When you have create your email template, a entity name is good ?
    Or when you have create marketing list, it’s not a same entity.

    Sorry for my english.

    in reply to: Error with acl #33992

    dimitri.seguin17
    Participant

    Thank’s for your reply.

    I replace owner by businuess_unit

    * "ownership"={
    * "owner_type"="BUSINESS_UNIT",
    * "owner_field_name"="business_unit",
    * "owner_column_name"="id_business_unit",
    * "organization_field_name"="organization",
    * "organization_column_name"="organization_id"
    * },

    but it’s possible to delete organization_field_name and organization_column_name or it’s mandatory ?

    in reply to: Error with acl #33990

    dimitri.seguin17
    Participant

    Hello,

    I look it’s a acl problem.

    When I log

    array (
    'doctrine.customTreeWalkers' =>
    array (
    0 => 'Oro\\Bundle\\SecurityBundle\\ORM\\Walker\\AclWalker',
    ),
    'oro_acl.condition' =>
    Oro\Bundle\SecurityBundle\ORM\Walker\Condition\AclConditionStorage::__set_state(array(
    'whereConditions' =>
    array (
    0 =>
    Oro\Bundle\SecurityBundle\ORM\Walker\Condition\AclCondition::__set_state(array(
    'entityAlias' => 'w',
    'entityField' => NULL,
    'value' => NULL,
    'pathExpressionType' => NULL,
    'organizationField' => 'organization',
    'organizationValue' => 1,
    'ignoreOwner' => true,
    )),
    ),
    'joinConditions' =>
    array (
    ),
    'subRequests' => NULL,
    )),
    )

    It’s a serious problem, it blocks me for my development.

    in reply to: Error with acl #33989

    dimitri.seguin17
    Participant

    And is it allowed to use many times the same acl (here “event_web_contact_view”) ?

    in reply to: Error with acl #33988

    dimitri.seguin17
    Participant

    Hello,

    This is my template for this action

    {% extends "OroUIBundle:actions:index.html.twig" %}
    {% import 'OroUIBundle::macros.html.twig' as UI %}

    {% set pageTitle = 'orocrm.myaccount.web_contact.entity_plural_label'|trans %}
    {% set gridName = 'myaccount-webcontact-grid' %}

    {% block navButtons %}
    {% include 'OroImportExportBundle:ImportExport:buttons.html.twig' with {
    entity_class: entity_class,
    dataGridName: gridName
    } %}
    {% endblock %}

    my datagrid

    datagrid:
    myaccount-webcontact-grid:
    source:
    type: orm
    query:
    select:
    - w.id_web_contact
    - w.contact_date
    - w.message
    - w.object_id
    - w.destination_id
    - w.public
    - w.ip
    - w.user_agent
    - w.mongo_id
    - CONCAT(tourist.firstName, CONCAT(' ', tourist.lastName)) as touristName
    - businessUnit.name as businessName
    - account.id_account as accountId
    from:
    - { table: Rc\ApiMyAccountBundle\Entity\WebContact , alias: w }
    join:
    left:
    - { join: w.tourist, alias: tourist }
    - { join: w.business_unit, alias: businessUnit }
    - { join: w.account, alias: account }
    columns:
    contact_date:
    label: orocrm.myaccount.web_contact.contact_date.label
    frontend_type: datetime
    message:
    label: orocrm.myaccount.web_contact.message.label
    object_id:
    label: orocrm.myaccount.object_id.label
    touristName:
    label: orocrm.myaccount.tourist.label
    sorters:
    columns:
    contact_date: { data_name: w.contact_date }
    touristName: { data_name: touristName }
    object_id: { data_name: w.object_id}
    default:
    contact_date: DESC
    filters:
    columns:
    contact_date:
    type: datetime
    data_name: w.contact_date
    message:
    type: string
    data_name: w.message
    touristName:
    type: string
    data_name: touristName
    options:
    entityHint: webContact
    export: true
    entity_pagination: true

    and my entity

    <?php

    namespace Rc\ApiMyAccountBundle\Entity;

    use Doctrine\ORM\Mapping as ORM;
    use Doctrine\Common\Collections\Collection;
    use Doctrine\Common\Collections\ArrayCollection;

    use JMS\Serializer\Annotation\Exclude;

    use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\Config;
    use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField;
    use Oro\Bundle\OrganizationBundle\Entity\BusinessUnit;

    use Symfony\Component\Validator\Constraints as Assert;

    /**
    * @ORM\Entity(repositoryClass="Rc\ApiMyAccountBundle\Entity\Repository\WebContactRepository")
    * @ORM\Table(name="rc_web_contact", uniqueConstraints={@ORM\UniqueConstraint(name="unique_idx", columns={"mongo_id"})})
    * @Config(
    * routeView="my_account_event_web_contact_index",
    * routeView="my_account_event_web_contact_view",
    * defaultValues={
    * "entity"={
    * "label"="Web contact"
    * },
    * "form"={
    * "grid_name"="myaccount-webcontact-grid",
    * },
    * "ownership"={
    * "owner_type"="BUSINESS_UNIT",
    * "owner_field_name"="owner",
    * "owner_column_name"="business_unit_owner_id",
    * "organization_field_name"="organization",
    * "organization_column_name"="organization_id"
    * },
    * "security"={
    * "type"="ACL",
    * "permissions"="ALL"
    * }
    * }
    * )
    */
    class WebContact
    {
    /**
    * @ORM\Id
    * @ORM\Column(type="integer")
    * @ORM\GeneratedValue(strategy="AUTO")
    * @ConfigField(
    * defaultValues={
    * "entity"={
    * "label"="Web contact id"
    * }
    * }
    * )
    */
    private $id_web_contact;

    /**
    * @var \DateTime
    *
    * @ORM\Column(type="datetime")
    * @ConfigField(
    * defaultValues={
    * "entity"={
    * "label"="Contact date"
    * }
    * }
    * )
    */
    private $contact_date;

    /**
    * @var string
    *
    * @ORM\Column(type="string", length=1000)
    * @ConfigField(
    * defaultValues={
    * "entity"={
    * "label"="Message"
    * }
    * }
    * )
    */
    private $message;

    /**
    * @var \DateTime
    *
    * @ORM\Column(type="datetime", nullable=true)
    * @ConfigField(
    * defaultValues={
    * "entity"={
    * "label"="Stay end date"
    * }
    * }
    * )
    */
    private $stay_end_date;

    /**
    * @var \DateTime
    *
    * @ORM\Column(type="datetime", nullable=true)
    * @ConfigField(
    * defaultValues={
    * "entity"={
    * "label"="Stay start date"
    * }
    * }
    * )
    */
    private $stay_start_date;

    /**
    * @var string
    *
    * @ORM\Column(type="string", length=255, nullable=true)
    * @ConfigField(
    * defaultValues={
    * "entity"={
    * "label"="Object id"
    * }
    * }
    * )
    */
    private $object_id;

    /**
    * @var string
    *
    * @ORM\Column(type="string", length=255)
    * @ConfigField(
    * defaultValues={
    * "entity"={
    * "label"="Destination id"
    * }
    * }
    * )
    */
    private $destination_id;

    /**
    * @var boolean
    *
    * @ORM\Column(type="boolean")
    * @ConfigField(
    * defaultValues={
    * "entity"={
    * "label"="Public"
    * }
    * }
    * )
    */
    private $public;

    /**
    * @var string
    *
    * @ORM\Column(type="string", length=255, nullable=true)
    * @ConfigField(
    * defaultValues={
    * "entity"={
    * "label"="Ip"
    * }
    * }
    * )
    */
    private $ip;

    /**
    * @var string
    *
    * @ORM\Column(type="string", length=255, nullable=true)
    * @ConfigField(
    * defaultValues={
    * "entity"={
    * "label"="User agent"
    * }
    * }
    * )
    */
    private $user_agent;

    /**
    * @var string
    *
    * @ORM\Column(type="string", length=255)
    * @ConfigField(
    * defaultValues={
    * "entity"={
    * "label"="Mongo id"
    * }
    * }
    * )
    */
    private $mongo_id;

    /**
    * @var \DateTime
    *
    * @ORM\Column(type="datetime")
    * @ConfigField(
    * defaultValues={
    * "entity"={
    * "label"="Creation date"
    * }
    * }
    * )
    */
    private $created;

    /**
    * @var Tourist
    *
    * @ORM\ManyToOne(targetEntity="Tourist", inversedBy="web_contacts")
    * @ORM\JoinColumn(name="id_tourist", referencedColumnName="id")
    * @ConfigField(
    * defaultValues={
    * "entity"={
    * "label"="Tourist id"
    * }
    * }
    * )
    */
    private $tourist;

    /**
    * @var BusinessUnit
    *
    * @ORM\ManyToOne(targetEntity="\Oro\Bundle\OrganizationBundle\Entity\BusinessUnit")
    * @ORM\JoinColumn(name="id_business_unit", referencedColumnName="id")
    * @ConfigField(
    * defaultValues={
    * "entity"={
    * "label"="Business unit id"
    * }
    * }
    * )
    */
    private $business_unit;

    /**
    * @var Account
    *
    * @ORM\ManyToOne(targetEntity="Account", inversedBy="web_contacts")
    * @ORM\JoinColumn(name="id_account", referencedColumnName="id_account")
    * @ConfigField(
    * defaultValues={
    * "entity"={
    * "label"="Account id"
    * }
    * }
    * )
    */
    private $account;

    /** @var string */
    private $event_type = 'contacted';

    /** @var string */
    private $website_uid = '';

    /** @var string */
    private $mobile_uid = '';

    /** @var string */
    private $user_id = '';

    /** @var \Datetime */
    private $inserted = null;

    /** @var array */
    private $parameters_contacted;

    /**
    * @return mixed
    */
    public function getEventType()
    {
    return $this->event_type;
    }

    /**
    * @param mixed $event_type
    */
    public function setEventType($event_type)
    {
    $this->event_type = $event_type;
    }

    /**
    * @return \DateTime
    */
    public function getContactDate()
    {
    return $this->contact_date;
    }

    /**
    * @param \DateTime $contact_date
    */
    public function setContactDate($contact_date)
    {
    $this->contact_date = $contact_date;
    }

    /**
    * @return mixed
    */
    public function getId()
    {
    return $this->id_web_contact;
    }

    /**
    * @param mixed $id_web_contact
    */
    public function setId($id_web_contact)
    {
    $this->id_web_contact = $id_web_contact;
    }

    /**
    * @return string
    */
    public function getDestinationId()
    {
    return $this->destination_id;
    }

    /**
    * @param string $destination_id
    */
    public function setDestinationId($destination_id)
    {
    $this->destination_id = $destination_id;
    }

    /**
    * @return string
    */
    public function getIp()
    {
    return $this->ip;
    }

    /**
    * @param string $ip
    */
    public function setIp($ip)
    {
    $this->ip = $ip;
    }

    /**
    * @return string
    */
    public function getMongoId()
    {
    return $this->mongo_id;
    }

    /**
    * @param string $mongo_id
    */
    public function setMongoId($mongo_id)
    {
    $this->mongo_id = $mongo_id;
    }

    /**
    * @return string
    */
    public function getObjectId()
    {
    return $this->object_id;
    }

    /**
    * @param string $object_id
    */
    public function setObjectId($object_id)
    {
    $this->object_id = $object_id;
    }

    /**
    * @return boolean
    */
    public function isPublic()
    {
    return $this->public;
    }

    /**
    * @param boolean $public
    */
    public function setPublic($public)
    {
    $this->public = $public;
    }

    /**
    * @return string
    */
    public function getUserAgent()
    {
    return $this->user_agent;
    }

    /**
    * @param string $user_agent
    */
    public function setUserAgent($user_agent)
    {
    $this->user_agent = $user_agent;
    }

    /**
    * @return \Oro\Bundle\OrganizationBundle\Entity\BusinessUnit
    */
    public function getBusinessUnit()
    {
    return $this->business_unit;
    }

    /**
    * @param \Oro\Bundle\OrganizationBundle\Entity\BusinessUnit $id_business_unit
    */
    public function setBusinessUnit($id_business_unit)
    {
    $this->business_unit = $id_business_unit;
    }

    /**
    * @return Tourist
    */
    public function getTourist()
    {
    return $this->tourist;
    }

    /**
    * @param Tourist $tourist
    */
    public function setTourist($tourist)
    {
    $this->tourist = $tourist;
    }

    /**
    * @return string
    */
    public function getWebsiteUid()
    {
    return $this->website_uid;
    }

    /**
    * @param string $website_uid
    */
    public function setWebsiteUid($website_uid)
    {
    $this->website_uid = $website_uid;
    }

    /**
    * @return string
    */
    public function getMobileUid()
    {
    return $this->mobile_uid;
    }

    /**
    * @param string $mobile_uid
    */
    public function setMobileUid($mobile_uid)
    {
    $this->mobile_uid = $mobile_uid;
    }

    /**
    * @return string
    */
    public function getUserId()
    {
    return $this->user_id;
    }

    /**
    * @param string $user_id
    */
    public function setUserId($user_id)
    {
    $this->user_id = $user_id;
    }

    /**
    * @return array
    */
    public function getParametersContacted()
    {
    return $this->parameters_contacted;
    }

    /**
    * @param array $parameters_contacted
    */
    public function setParametersContacted($parameters_contacted)
    {
    $this->parameters_contacted = $parameters_contacted;
    }

    /**
    * @return Account
    */
    public function getAccount()
    {
    return $this->account;
    }

    /**
    * @param Account $account
    */
    public function setAccount($account)
    {
    $this->account = $account;
    }

    /**
    * @return string
    */
    public function getMessage()
    {
    return $this->message;
    }

    /**
    * @param string $message
    */
    public function setMessage($message)
    {
    $this->message = $message;
    }

    /**
    * @return \Datetime
    */
    public function getInserted()
    {
    return $this->inserted;
    }

    /**
    * @param \Datetime $inserted
    */
    public function setInserted($inserted)
    {
    $this->inserted = $inserted;
    }

    /**
    * @return \DateTime
    */
    public function getCreated()
    {
    return $this->created;
    }

    /**
    * @param \DateTime $created
    */
    public function setCreated($created)
    {
    $this->created = $created;
    }

    /**
    * @return \DateTime
    */
    public function getStayEndDate()
    {
    return $this->stay_end_date;
    }

    /**
    * @param \DateTime $stay_end_date
    */
    public function setStayEndDate($stay_end_date)
    {
    $this->stay_end_date = $stay_end_date;
    }

    /**
    * @return \DateTime
    */
    public function getStayStartDate()
    {
    return $this->stay_start_date;
    }

    /**
    * @param \DateTime $stay_start_date
    */
    public function setStayStartDate($stay_start_date)
    {
    $this->stay_start_date = $stay_start_date;
    }

    public function getOrganization() {}

    public function setOrganization() {}
    }

Viewing 15 replies - 1 through 15 (of 27 total)
Back to top

You will be redirected to [title]. Would you like to continue?

Yes No

You will be redirected to [title]. Would you like to continue?

Yes No