Пример #1
0
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<pre>
<?php 
require 'etc/bootstrap.php';
var_dump(Billing\Core::getEm()->getConnection()->fetchAll("select TOP 10 CreationDate from ServiceAccount"));
var_dump(Billing\Core::getEm()->getConnection()->fetchAll("select TOP 10 FullName from Subscriber"));
Пример #2
0
<?php

require_once __DIR__ . '/etc/bootstrap.php';
$helperSet = new \Symfony\Component\Console\Helper\HelperSet(array('db' => new \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper(Billing\Core::getEm()->getConnection()), 'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper(Billing\Core::getEm())));
return $helperSet;
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     $this->object = Billing\Core::getEm()->getRepository("Billing\\Domain\\TVEIpTVChannel");
 }