please read my previous reply first.
in src/clients.php I have this:
namespace src;
use Doctrine\ORM\Mapping\ClassMetadata;
class clients
{
// ...
this is the function you told me this is correct. Since I did not set up
yet an autoload I did require_once it and I also debug it with prnt(), so
this class file is included in test.php then I have this in test.php
require_once "bootstrap.php";
require_once "src/clients.php";
$class = $em->getClassMetadata('clients');
$class = $em->getMetadataFactory()->getMetadataFor('clients');
But I am still getting class 'clients' is not found! as this class file is
already included, then why getting this?
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.