Skip to content

Instantly share code, notes, and snippets.

Return-Path: <vvelykyi@oroinc.com>
Received: from [192.168.0.100] ([178.136.135.57])
by smtp.gmail.com with ESMTPSA id n72sm4024567wmd.11.2016.10.21.05.43.52
for <QA@orocrm.onmicrosoft.com>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Fri, 21 Oct 2016 05:43:53 -0700 (PDT)
From: Valentyn Velykyi <vvelykyi@oroinc.com>
Content-Type: multipart/mixed;
boundary="Apple-Mail=_36D59D47-096C-4018-9810-F2FD5F554432"
Mime-Version: 1.0 (Mac OS X Mail 10.0 \(3226\))
MIME-Version: 1.0
Received: from HE1PR07MB1403.eurprd07.prod.outlook.com (10.169.122.13) by
AM4PR07MB1393.eurprd07.prod.outlook.com (10.165.248.8) with Microsoft SMTP
Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
15.1.669.5 via Mailbox Transport; Thu, 13 Oct 2016 08:43:46 +0000
Received: from HE1PR07MB1148.eurprd07.prod.outlook.com (10.163.178.14) by
HE1PR07MB1403.eurprd07.prod.outlook.com (10.169.122.13) with Microsoft SMTP
Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
15.1.679.4; Thu, 13 Oct 2016 08:43:45 +0000
Received: from AM5PR0701CA0002.eurprd07.prod.outlook.com (10.168.161.12) by
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['setUserId', "id=guest; visitor-id=3218416"]);
_paq.push(['setConversionAttributionFirstReferrer', false]);
_paq.push(['trackPageView']);
(function() {
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['setUserId', "id=guest; visitor-id=3218416"]);
_paq.push(['setConversionAttributionFirstReferrer', false]);
_paq.push(['trackPageView']);
(function() {
Your application 'testdsh' is successfully deployed
Your application 'testdsh' is successfully deployed
Hello, dmitriy!
Application testdsh was successfully deployed to OroCloud.
Application URL: http://testdsh.trial.dev.oro-cloud.com
Application Username: testuser
@hugeval
hugeval / git_revert_merge_commit.sh
Created November 17, 2015 11:18
git_revert_merge_commit.sh
git revert -m 1 0abf622 -n
@hugeval
hugeval / git_submodules.bash
Created November 6, 2015 10:10
git submodule management
git submodule foreach bash -c 'git branch | grep -v \* | xargs git branch -D'
@hugeval
hugeval / bad_practices.php
Last active November 6, 2015 09:42
bad_practices
<?php
// wrong
$entityConfig = new EntityConfigId('security', $entityClass);
$shareScopes = $this->configManager->getConfig($entityConfig)->get('share_scopes');
// correct
$shareScopes = $this->configManager->getProvider('security')->getConfig($entityClass)->get('share_scopes');
// or
$shareScopes = $this->securityConfigProvider->getConfig($entityClass)->get('share_scopes');
//
@hugeval
hugeval / composer-example.json
Last active September 4, 2015 12:10
composer-example
{
"name": "oro/crm-enterprise-application",
"description": "The OroCRM Enterprise Application",
"homepage": "https://github.com/orocrm/crm-enterprise-application.git",
"license": "OSL-3.0",
"autoload": {
"psr-0": {
"": "src/"
}
},
@hugeval
hugeval / sql error.txt
Created August 26, 2015 16:46
sql error
An exception has been thrown during the rendering of a template ("An exception occurred while executing 'SELECT COUNT(*) FROM (SELECT o0_.id AS id0, o0_.name AS name1, o1_.email AS email2, o2_.phone AS phone3 FROM orocrm_account o0_ INNER JOIN oro_navigation_history o3_ ON (o0_.id = o3_.entity_id AND o3_.route = 'orocrm_account_view') LEFT JOIN orocrm_contact o4_ ON o0_.default_contact_id = o4_.id AND (o4_.organization_id = 1) LEFT JOIN orocrm_contact_email o1_ ON o4_.id = o1_.owner_id AND (o1_.is_primary = 1) LEFT JOIN orocrm_contact_phone o2_ ON o4_.id = o2_.owner_id AND (o2_.is_primary = 1) WHERE o3_.user_id = 54 AND (o0_.organization_id = 1 OR EXISTS (SELECT 1 AS sclr4 FROM acl_entries a5_ WHERE o0_.id = a5_.record_id AND o0_.id = AND o0_.id = )) GROUP BY id0, name1, email2, phone3) AS e':
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND o0_.id = )) GROUP BY id