Using Doctrine in D8 I have downloaded the latest version of Drupal 8 my project structure looks like:

private/
  EntityOne.php 
  EntityTwo.php
  Test.php =&gt; Test Script (Eventually AUT)
public/
  index.php =&gt; 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.

http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/tutorials/getting-started.html#obtaining-the-entitymanager

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

Alex
Drupal 8 uses the annotation reader from Doctrine Common but it does not use the ORM. The handbook page for the Drupal entity field API is being written at https://drupal.org/node/2078191