Hello all,
I have a problem just following the tutorial 
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/tutorials/getting-started.html
I have a project folder, composer installed doctrine. 
I got well the "No meta class found" when I launch "vendor/bin/doctrine 
orm:schema-tool:create"  -ok
Nevertheless, when defining a product with Product.php... the php fdile is 
read ( because if I put an error inside, php crash)  but I still have the 
same message.

vendor/bin/doctrine orm:schema-tool:create ->
No Metadata Classes to process.

Here is my Product.php. Does someone has an idea of what to do ?

Thanks of a lot for your ideas.


<?php

// src/Product.php

use Doctrine\ORM\Annotation as ORM;

/**
 * @ORM\Entity @ORM\Table(name="products")
 **/
class Product
{
    /** @ORM\Id @ORM\Column(type="integer") @ORM\GeneratedValue **/
    protected $id;

    /** @ORM\Column(type="string") **/
    protected $name;

    public function getId()
    {
        return $this->id;
    }

    public function getName()
    {
        return $this->name;
    }

    public function setName($name)
    {
        $this->name = $name;
    }
}

?>

-- 
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 doctrine-user+unsubscr...@googlegroups.com.
To post to this group, send email to doctrine-user@googlegroups.com.
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to