Skip to content

Commit

Permalink
disable proxy regeneration, laod other annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
takeit committed Mar 19, 2015
1 parent a9921ad commit 0ff18f0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
$upgradeErrors = array();

require $newscoopDir.'conf/database_conf.php';
require_once $newscoopDir.'vendor/autoload.php';
$loader = require $newscoopDir.'/vendor/autoload.php';
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

use Monolog\Logger;
use Newscoop\NewscoopBundle\Entity\Topic;
Expand Down Expand Up @@ -36,6 +37,8 @@

$app->register(new DoctrineOrmServiceProvider(), array(
"orm.proxies_dir" => $newscoopDir."/library/Proxy",
"orm.auto_generate_proxies" => false,
"orm.proxies_namespace" => "Proxy",
"orm.em.options" => array(
"mappings" => array(
array(
Expand Down

0 comments on commit 0ff18f0

Please sign in to comment.