I have downloaded the latest version of Drupal 8 my project structure looks like:
private/ EntityOne.php EntityTwo.php Test.php => Test Script (Eventually AUT) public/ index.php => Drupal Engine
Inside Test.php I wish to begin building a series of entities which at first will be used externally and eventually be moved into Drupal modules.
I have Googled and spent hours trying to get Doctrine to start letting me build tables with my entities, but I am doing something wrong.
Is of no help, there is no "vendor/autoload.php" but there is a "core/vendor/autoload.php"
I can include this file in Test.php and everything is fine but when I start adding code:
include '../public/core/vendor/autoload.php'; use Doctrine\ORM\Tools\Setup; use Doctrine\ORM\EntityManager; // Create a simple "default" Doctrine ORM configuration for Annotations $isDevMode = true; $config = Setup::createAnnotationMetadataConfiguration(array(__DIR__."/src"), $isDevMode);
I get an error:
Fatal error: Class 'Doctrine\ORM\Tools\Setup' not found in ...\private\index.php on line 10
There is no "Doctrine/ORM"
What am I missing???