Skip to content

Instantly share code, notes, and snippets.

View pierrejoye's full-sized avatar

Pierre Joye pierrejoye

  • Thailand
View GitHub Profile
Verifying that +pierrejoye is my blockchain ID. https://onename.com/pierrejoye
$isDevMode = true;
$dbParams = $container->get('app.config')['doctrine'];
$config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode, null, null, FALSE);
$em = EntityManager::create($dbParams, $config);
$league = new \Pool\Entity\League;
$leagueRepository = $em->getRepository('\Pool\Entity\League');
result:
Details
$app->container->singleton(
'doctrine.entitymanager',
function (Set $container) {
$paths = [__DIR__."/../src/Doctrine/Mapping/"];
$isDev = true;
$dbConfig = $container->get('app.config')['doctrine'];
$config = Setup::createAnnotationMetadataConfiguration($paths, $isDev, null, null, FALSE);
$entityManager = Doctrine\ORM\EntityManager::create($dbConfig, $config);
return $entityManager;
}
league persistPool\Entity\League Object
(
[id:protected] => 7
[name:protected] => Red League
[picture:protected] =>
[teams:protected] =>
[tournaments:protected] => Array
(
[13/05/2015] => Array
(
Pool\Entity\Team Object
(
[id:protected] => 22
[name:protected] => dasds
[picture:protected] =>
[captain:protected] => Pool\Entity\User Object
(
[id:protected] => 4
[email:protected] => [email protected]
[passwordHash:protected] => $2y$10$kh0vxVu8WLYgmbAvtvJj0uA6C0UFVFudccEi2fqmwWU7SPfjzEdaW
path:
data: /data/data
logs: /data/log
plugins: /data/plugins
work: /data/work
pierre@deb64pecl:~/projects/pickle/pickle$ bin/pickle info pierrejoye/igbinary-~1.2
dev-master: no
1.5.2: yes
1.5.1: yes
1.5.0: yes
1.4.21: yes
1.4.20: yes
1.4.19: yes
1.4.18: yes
1.4.17: yes
401. That’s an error.
Error: invalid_client
The OAuth client was not found.
Request Details
response_type=code
scope=profile email
redirect_uri=http://127.0.0.1:8080/login/google
[dev-master] => Array
(
[name] => pierrejoye/igbinary
[version] => 1.2.2-dev
[type] => extension
[stability] => stable
[license] => Array
(
[0] => New BSD
)
diff --git a/include/pear-database.php b/include/pear-database.php
index 105603c..5ee9c31 100644
--- a/include/pear-database.php
+++ b/include/pear-database.php
@@ -1869,8 +1869,7 @@ class release
require_once "HTTP.php";
$package_id = package::info($package, 'packageid', true);
-
- if (!$package_id) {