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:
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