Commits -------dc5772d
use ORM master4364463
use doctrine-common master55b572d
fixed getting the alias for a namespace2b89e15
use getObjectNamespace() in getEntityNamespace()0217a0e
updated base class namee8f3c21
updated vendors to point to lsmith77's fork of doctrine-common until its merged6e87d01
fix tests13c2f33
added a default implementation of the ManagerRegistry integrating the container Discussion ---------- [Doctrine] added a default implementation of the ManagerRegistry Bug fix: no Feature addition: yes Backwards compatibility break: yes (minor change in the interface see below) Symfony2 tests pass: yes Fixes the following tickets: - added a default implementation of the ManagerRegistry integrating the container attempted to maintain BC as good as possible, but RegistryInterface::getRepository() had to be dropped from RegistryInterface. Its still part of the ManagerRegistry, so its only a BC break for people using RegistryInterface to create their own implementation as I ran into https://bugs.php.net/bug.php?id=43200 all implementation (ORM/ODM) will need to match the changes to the ClassMetadataFactory interface ORM, PHPCR, CouchDB have been upgraded already. The Bundles also need to be updated. ORM is covered with this PR, I have a PR ready for PHPCR: https://github.com/symfony-cmf/symfony-cmf/pull/108 also note that before merging the change to vendors.php needs to be fixed to point to the right repo again For MongoDB it currently does not yet have a registry and I can take care of CouchDB once this is all merged. --------------------------------------------------------------------------- by lsmith77 at 2011/09/23 00:40:07 -0700 still a few failing tests and details still need to be discussed .. --------------------------------------------------------------------------- by lsmith77 at 2011/09/23 00:53:23 -0700 ok .. tests are passing now --------------------------------------------------------------------------- by lsmith77 at 2011/10/11 10:27:52 -0700 ok Doctrine/ORM updates are done .. PR updated .. ready to be merged.
55 lines
1.6 KiB
PHP
Executable File
55 lines
1.6 KiB
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
|
|
/*
|
|
* This file is part of the Symfony framework.
|
|
*
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
/*
|
|
|
|
CAUTION: This file installs the dependencies needed to run the Symfony2 test suite.
|
|
If you want to create a new project, download the Symfony Standard Edition instead:
|
|
|
|
http://symfony.com/download
|
|
|
|
*/
|
|
|
|
set_time_limit(0);
|
|
|
|
if (!is_dir($vendorDir = dirname(__FILE__).'/vendor')) {
|
|
mkdir($vendorDir, 0777, true);
|
|
}
|
|
|
|
$deps = array(
|
|
array('doctrine', 'http://github.com/doctrine/doctrine2.git', 'origin/master'),
|
|
array('doctrine-dbal', 'http://github.com/doctrine/dbal.git', 'origin/2.1.x'),
|
|
array('doctrine-common', 'http://github.com/doctrine/common.git', 'origin/master'),
|
|
array('monolog', 'http://github.com/Seldaek/monolog.git', '1.0.1'),
|
|
array('swiftmailer', 'http://github.com/swiftmailer/swiftmailer.git', 'v4.1.2'),
|
|
array('twig', 'http://github.com/fabpot/Twig.git', 'v1.2.0'),
|
|
);
|
|
|
|
foreach ($deps as $dep) {
|
|
list($name, $url, $rev) = $dep;
|
|
|
|
$installDir = $vendorDir.'/'.$name;
|
|
$install = false;
|
|
if (!is_dir($installDir)) {
|
|
$install = true;
|
|
echo "> Installing $name\n";
|
|
|
|
system(sprintf('git clone %s %s', escapeshellarg($url), escapeshellarg($installDir)));
|
|
}
|
|
|
|
if (!$install) {
|
|
echo "> Updating $name\n";
|
|
}
|
|
|
|
system(sprintf('cd %s && git fetch origin && git reset --hard %s', escapeshellarg($installDir), escapeshellarg($rev)));
|
|
}
|