public function installDatabase()
{
$schemaTool = new \Doctrine\ORM\Tools\SchemaTool($this->entityManager);
$entityClasses = $this->getEntities();
$classes = array();
foreach($entityClasses as $entityClass)
{
$classes[] = $this->entityManager->getClassMetadata($entityClass);
}
$schemaTool->dropDatabase();
$schemaTool->createSchema($classes);
$this->activateTatami();
$this->installUserRoles();
return $this;
}
Today i have released a PHP library for convenient executions of Yahoo Query Language queries. It prepares cURL requests for querying and formats the response back from JSON strings into native PHP constructs.
How do you use it?
Requirements
YQL PHP Library requires PHP 5.3.
Installation
Just copy the files into your lib folder [...]
