Skip to content

Instantly share code, notes, and snippets.

View intellent's full-sized avatar
🐝
Everybody likes bees.

André Simmert intellent

🐝
Everybody likes bees.
View GitHub Profile
@extraordinaire
extraordinaire / reconnecting_pdo.php
Last active August 2, 2024 22:48
Reconnectable PDO
<?php
class ReconnectingPDO
{
protected $dsn, $username, $password, $pdo, $driver_options;
public function __construct($dsn, $username = "", $password = "", $driver_options = array())
{
$this->dsn = $dsn;
$this->username = $username;
$this->password = $password;
@redthor
redthor / symfony_doctrine_dump_individual_files.txt
Created July 5, 2012 02:21
To change symfony 1.4 and doctrine to support dumping individual tables and selecting which models will be dumped
cd $SF_HOME/lib/vendor/symfony/lib/plugins
$ svn status |grep '^M'
M sfDoctrinePlugin/config/sfDoctrinePluginConfiguration.class.php
M sfDoctrinePlugin/lib/task/sfDoctrineDataDumpTask.class.php
M sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Cli.php
M sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Task/DumpData.php
M sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Core.php
$ for a in `svn status |grep '^M' |awk '{print $2}'`;