Skip to content

Instantly share code, notes, and snippets.

View guilhermeblanco's full-sized avatar

Guilherme Blanco guilhermeblanco

  • Orlando, FL, USA
  • 00:13 (UTC -04:00)
View GitHub Profile
root@mahem:/var/www/doctrine# hhvm spl_priotity_queue.php
HipHop Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function insert() on a non-object' in :
Stack trace:
#0 /var/www/doctrine/splpriotityqueue.php(30): SplPriorityQueue->insert()
#1 {main}
/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 '';
}
@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
{
/**
+---------+----------+-----------+
| root_id | toone_id | tomany_id |
+---------+----------+-----------+
| 1 | 1 | 1 |
| 1 | 1 | 2 |
| 2 | 1 | 3 |
| 2 | 1 | 1 |
| 2 | 1 | 2 |
| 1 | 1 | 3 |
+---------+----------+-----------+
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;
-
+
<?php
class Event
{
public $type;
public $data = null;
public $stopPropagation = false;
<?php
class TabRepository
{
private $mapping;
public function __construct(/*...*/, TabMapping $mapping)
{
$this->mapping = $mapping;
}
# 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 %>";
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':
collectd::core_plugins:
'apache':
'apache80':
'URL': 'http://localhost/server-status?auto'