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 16 total)
  • Author
    Replies
  • in reply to: DBAL Custom type / Audit formatter #34436

    Geoffroy Cochard
    Participant

    Perhaps a new event dispatcher in AuditConverter

    in reply to: DBAL Custom type / Audit formatter #34435

    Geoffroy Cochard
    Participant

    Try to use my own EntityChangesToAuditEntryConverter. but Oro\Bundle\DataAuditBundle\Service\EntityChangesToAuditEntryConverter::__construct() wait for an Oro\Bundle\DataAuditBundle\Service\ChangeSetToAuditFieldsConverter.

    in reply to: DBAL Custom type / Audit formatter #34434

    Geoffroy Cochard
    Participant

    We can’t use a custom AuditEntityClass cause Oro\Bundle\DataAuditBundle\Entity\AbsctractAudit::addField wait for an Oro\Bundle\DataAuditBundle\Entity\AuditField as argument….

    in reply to: Change config field to an Oro Entity (Contact) #34413

    Geoffroy Cochard
    Participant

    Finally I opted to overload Form Type and EntityNameFormatter provider.


    Geoffroy Cochard
    Participant

    Hie,

    —–
    In contact view :

    I trying to learn workflows. I can load this workflow and view in workflow definition. But when I try to view a contact it gives this error.

    Do you have define the key transition.reopen.label key ? I think error message says it search title for transition, no ?

    —–

    Expected value of type “Extend\Entity\EV_Followup_Source” for association field
    “Oro\Bundle\ContactBundle\Entity\Contact#$followup_status”, got “string” instead.

    In your data model Followup_Source is an enum ?
    Why you want maintain an followup status in your contact, it defer on WorkflowItem association ?

    Geoffory

    in reply to: Workflow post_actions multiples #34276

    Geoffroy Cochard
    Participant

    Hi,

    Right, system doesn’t go to next step cause current DoctrineManager is clearing by DoctrineClerWriter. StepId is not updated, etc…

    Geoffroy

    in reply to: Workflow post_actions multiples #34274

    Geoffroy Cochard
    Participant

    Ok…

    Manager is cleared when use XlsWriter / CsvWriter due to call DoctrineClearWriter who clear DoctrineManager after writing…

    It’s clearing / detach each item due to performance ?

    in reply to: Workflow post_actions multiples #34273

    Geoffroy Cochard
    Participant

    In fact if i get Doctrine UnitOfWork before call exportHandler(), there’s Workflow*Entities in identityMap and after there’re disappear…

    in reply to: automatic email with attachment #25117

    Geoffroy Cochard
    Participant

    Hie,

    Below my solution in Workflow\Action based on emailAttachmentTransformer service… if it can help you :

    in reply to: Export with QueryBuilder #34268

    Geoffroy Cochard
    Participant

    Hi,

    I’m going to try this solution.
    Thanks for all :) Great support.

    in reply to: Export with QueryBuilder #34266

    Geoffroy Cochard
    Participant

    But i don’t see how to param/change Reader to ItemStep class use by oro_importexport.handler.export.

    Should i create a new connector to use another Reader ?
    Should i push a custom context in my processor definition ?

    Thanks a lot for your advices.

    in reply to: Export with QueryBuilder #34265

    Geoffroy Cochard
    Participant

    Hi,

    Right, during createJobInstance(), it persist rawConfiguration property akeneo_batch_job_instance with who support options from ‘oro_importexport.handler.export service’.

    So for the moment we can’t pass query or a queryBuilder to ExportHandler options to use in EntityReader::setSourceQueryBuilder()

    max_results = 1 was an example, my needs would be more complex.

    Should i see process to use in datagrid export ?

    Geoffroy

    in reply to: Create OneToOne relationship with migrations #33708

    Geoffroy Cochard
    Participant

    Hi,

    As said @hugeval, to create a OneToOne relationship through migrations i’m using this to link orocrm_contact to partner_table by example.
    But when Entity\Extend is generated, methods to manage OneToMany is generated …
    My DB schema is correct (FK Ok, Relation OK)

    In database line config is generated like this :

    And Entity\Extend in cache about “partner” Relation :

    in reply to: Add inversedBy methods to existing OROCrm entity #25072

    Geoffroy Cochard
    Participant

    Hi Artem,

    Thanks for your reply.

    in reply to: Add inversedBy methods to existing OROCrm entity #25070

    Geoffroy Cochard
    Participant

    I think its not possible yet : http://oroinc.com/orocrm/doc/current/book/entities#managing-entity-relations

    “The downside of this approach is that the owning side of a relationship always has to be an extended entity and that associations do not work for bidirectional relations.”

    Perhaps its plan for evolution : http://oroinc.com/orocrm/forums/topic/many-to-many-relation-between-user-and-custom-entities/#post-13467

Viewing 15 replies - 1 through 15 (of 16 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