__construct() публичный Метод

Initializes a new SchemaTool instance that uses the connection of the provided EntityManager.
public __construct ( EntityManager $em )
$em Doctrine\ORM\EntityManager
Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function __construct(EntityManagerInterface $em)
 {
     $this->em = $em;
     $this->platform = $this->getConnection()->getDatabasePlatform();
     parent::__construct($em);
 }