Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
Forum Replies Created
-
AuthorReplies
-
July 16, 2017 at 1:24 am in reply to: oro:cron:imap-sync [Failed] – duplicate unique key "oro_email_address_uq" #24578
And one more error:
123456The folder "INBOX" is selected.Previous max email UID "210"Found 1 email(s).Skip "Re: your interest in high yield investment opportunities" (UID: 210) email, because it is already synchronised.The synchronization failed. Error: A new entity was found through the relationship 'Oro\Bundle\ImapBundle\Entity\ImapEmail#email' that was not configured to cascade persist operations for entity: Re: your interest in high yield investment opportunities. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"}).The synchronization failed. Error: A new entity was found through the relationship 'Oro\Bundle\ImapBundle\Entity\ImapEmail#email' that was not configured to cascade persist operations for entity: Re: your interest in high yield investment opportunities. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"}).Synchronization stopped due to these errors.
But it worked fine before.I have not idea…
Hi!
Can anyone help?Hi all!
I had same problem and I applied solution from this topic.After that was a problem with disable folders.
1The folder "INBOX" has unsupported email format and was skipped and disabled.1The folder "[Gmail]/All Mail" has unsupported email format and was skipped and disabled.For myself I changed it like:
PHP123456789101112} catch (InvalidEmailFormatException $e) {/** TODO: Don't disable folders$folder->setSyncEnabled(false);$this->logger->info(sprintf('The folder "%s" has unsupported email format and was skipped and disabled.', $folderName));*/$this->logger->info(sprintf('The folder "%s" has unsupported email format and was skipped.', $folderName));}Now is not disable, it is good.
But still skipping if folder has unsupported email format.1234The folder "INBOX" is selected.Previous max email UID "1810"Found 100 email(s).The folder "INBOX" has unsupported email format and was skipped.I need solution for a quick fix, how skip only one email but don’t skip all folder?
It will be enough for this stage.Thank you!
April 11, 2017 at 7:58 pm in reply to: Email Notification for new Notes on Leads and Opportunities #28390Hi Artem,
Do you have update about enabling email notifications for opportunities and leads updates/comments?February 14, 2017 at 7:43 pm in reply to: How to make non strict client validation for 2 fields? #34342Hi!
You’re right, I’ll try your way.
Thank you!February 9, 2017 at 12:54 am in reply to: How to make non strict client validation for 2 fields? #34340Hi!
I found another way
JavaScript123456789101112131415161718192021222324252627282930$(document).ready(function () {$('form[name="biz_person"] button[type="submit"]').on('click', function (e) {e.preventDefault();var value = $.map($('input.biz-person-full-name-fields'), function (el) {var val = $(el).val();return String(val).trim();}).join('');var first = $('input.biz-person-full-name-fields:first');var data = first.data('validation');if (value === '') {/* add not blank validation */data['NotBlank'] = {'message': 'This value should not be blank.','payload': null};} else {/* delete not blank validation if set */if (typeof(data.NotBlank) !== 'undefined') {delete(data.NotBlank);}}first.data('validation', data);$(this).closest('form[name="biz_person"]').submit();});});Thank you!
Hi Mike!
I tried set code after {% block content_data %} but it doesn’t work.
Because block content_data has been overwritten after save.
https://github.com/orocrm/platform/blob/master/src/Oro/Bundle/UIBundle/Resources/views/actions/update.html.twig#L14-L26It works like this one
JavaScript1234567891011121314{% block content %}{% if isWidgetContext and saved %}<script type="text/javascript">require(['oroui/js/widget-manager'],function(widgetManager) {widgetManager.getWidgetInstance({{ app.request.get('_wid')|json_encode|raw }}, function (widget) {widget.remove();});});</script>{% else %}{{ parent() }}{% endif %}{% endblock %}and in action returned like this
PHP1234return array('isWidgetContext' => true,'saved' => $entity->getId());It is confused me, why I can’t use your way?
Hi!
Thank you very much for detailed reply.
But I think it’s a bad idea to edit a platform on my part, because in the future I will not be able to update the platform.Version 1.10.12
Validation is works only after submit form, but I see like this one.
It is not critical problem, but working incorrectly for me.
Yes, I tried that. But it also doesn’t work.
Hi!
I have similar problem.
But I can’t do to require always.Entity Building
PHP12345678910/*** @var BuildingEstate** @ORM\OneToMany(* targetEntity="ReBundle\Entity\BuildingEstate",* mappedBy="building",* cascade={"persist"}* )*/private $estate;Entity BuildingEstate
PHP1234567891011121314/*** @var Building** @ORM\ManyToOne(* targetEntity="ReBundle\Entity\Building",* inversedBy="estate"* )* @ORM\JoinColumn(* name="building_id",* referencedColumnName="id",* onDelete="CASCADE"* )*/private $building;Form type BuildingType
PHP1234567891011$builder->add('estate', 'oro_collection', ['required' => true,'label' => false,'entry_type' => 'biz_re_building_estate','allow_add' => true,'allow_delete' => true,'attr' => ['class' => 'biz-re-building-estate-widget'],'options' => ['data_class' => 'ReBundle\Entity\BuildingEstate'],'prototype_name' => $this->createPrototypeName(self::class . '_estate'),'cascade_validation' => true]);Form type BuildingEstateType
PHP1234567$builder->add('name', CoreType\TextType::class, ['required' => true,])->add('description', CoreType\TextareaType::class, ['required' => false]);Resources/config/validation.yml
YAML1234567891011121314151617181920212223ReBundle\Entity\Building:properties:name:- NotBlank: ~- Length:max: 255developer:- NotBlank: ~subArea:- NotBlank: ~address:- NotBlank: ~constructionYear:- NotBlank: ~- Length:max: 4ReBundle\Entity\BuildingEstate:properties:name:- NotBlank: ~- Length:max: 255if collection is empty, i don’t see * near ‘name’ and field doesn’t validate
it is work only if I put some text to any fields
No idea for fix.
-
AuthorReplies