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:
it sais: Class not found.
The entity is located at and looks like this:
It doesn't matter if I use version 5.7.4.2 or 5.7.5.1
The DB-tables are installed, but if try to instatiate a new entity like so:
$orm_entity = new \Concrete\Package\MyPackage\Src\Entity\MyEntity();
The entity is located at
root/packages/my_package/src/Entity/MyEntity.php
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
http://www.concrete5.org/community/forums/5-7-discussion/doctrine-2...