Skip to content

Instantly share code, notes, and snippets.

View guilhermeblanco's full-sized avatar

Guilherme Blanco guilhermeblanco

  • Orlando, FL, USA
  • 01:10 (UTC -04:00)
View GitHub Profile
---
:backends:
- 'yaml'
:hierarchy:
- "%{::hostname}"
- "%{::hiera}"
- 'xhprof'
- 'php'
- 'apache'
collectd::core_plugins:
'apache':
'apache80':
'URL': 'http://localhost/server-status?auto'
company::sysctl::sysctls:
'net.ipv4.tcp_keepalive_time':
value: "30"
'net.ipv4.tcp_keepalive_probes':
value: "5"
'net.ipv6.bindv6only':
value: "0"
'net.core.wmem_max':
value: "16777216"
'net.core.rmem_max':
# VCL configuration file for Varnish
# Define which IP addresses or hosts have access to files that are
# blocked from the public internet
acl internal
{
"localhost";
"10.0.2.15";
"192.168.56.1";
"<%= @hostname %>";
<?php
class TabRepository
{
private $mapping;
public function __construct(/*...*/, TabMapping $mapping)
{
$this->mapping = $mapping;
}
<?php
class Event
{
public $type;
public $data = null;
public $stopPropagation = false;
diff --git a/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php b/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php
index c49b978..eb70f3b 100644
--- a/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php
+++ b/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php
@@ -263,7 +263,7 @@ abstract class AbstractHydrator
$cache[$key]['isIdentifier'] = $classMetadata->isIdentifier($fieldName);
$cache[$key]['dqlAlias'] = $this->_rsm->columnOwnerMap[$key];
break;
-
+
+---------+----------+-----------+
| root_id | toone_id | tomany_id |
+---------+----------+-----------+
| 1 | 1 | 1 |
| 1 | 1 | 2 |
| 2 | 1 | 3 |
| 2 | 1 | 1 |
| 2 | 1 | 2 |
| 1 | 1 | 3 |
+---------+----------+-----------+
@guilhermeblanco
guilhermeblanco / Cache.php
Created April 14, 2014 04:14
Cache ideas
<?php
namespace Doctrine\Cache;
use Doctrine\Cache\CacheEntry;
use Doctrine\Cache\Transaction;
class Cache extends \ArrayAccess
{
/**
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
you should update _getCommonIntegerTypeDeclarationSQL function and make it look like
===
protected function _getCommonIntegerTypeDeclarationSQL(array $columnDef)
{
if ( ! empty($columnDef['autoincrement'])) {
return '';
}