<?php
// fa?a o donwload dos pacotes doctrine
require_once('lib/Doctrine/Common/ClassLoader.php');
require_once "entities/Notificacao.php";
use Doctrine\Common\ClassLoader,
Doctrine\ORM\Configuration,
Doctrine\ORM\EntityManager,
Doctrine\DBAL\Types\Type,
Doctrine\Common\Cache\ArrayCache;
use Doctrine\ORM\Tools\Setup;
//register Doctrine
$doctrineClassLoader = new ClassLoader('Doctrine', __DIR__ . '/lib/');
$doctrineClassLoader->register();
// register Symfony
$doctrineClassLoader = new ClassLoader('Symfony', __DIR__ . '/lib/Doctrine/');
$doctrineClassLoader->register();
// register entities
$doctrineClassLoader = new ClassLoader('Entities', __DIR__ . '/entities/');
$doctrineClassLoader->register();
?>
|