Doctrine 2 Entities

Permalink
I have defined my entities following this guide:https://www.concrete5.org/documentation/developers/5.7/packages/cust...

The DB-tables are installed, but if try to instatiate a new entity like so:
$orm_entity = new \Concrete\Package\MyPackage\Src\Entity\MyEntity();
it sais: Class not found.
The entity is located at
root/packages/my_package/src/Entity/MyEntity.php
and looks like this:
namespace Concrete\Package\MyPackage\Src\Entity;
/**
 * @Entity
 * @Table(name="btMyEntity")
 */
class MyEntity
{
    /**
     * @Id
     * @Column(type="integer", options={"unsigned":true})
     * @GeneratedValue(strategy="AUTO")
     */
    protected $entityID;
    // ... and so on


It doesn't matter if I use version 5.7.4.2 or 5.7.5.1

daenu
 
Mainio replied on at Permalink Reply
Mainio