Get DBAL from class property instead of Zend_Registry
This commit is contained in:
parent
19668c044b
commit
54148e8aef
@ -40,11 +40,7 @@ class Catalog extends Scores_Ws_Server
|
|||||||
|
|
||||||
// Data
|
// Data
|
||||||
try {
|
try {
|
||||||
/**
|
$queryBuilder = $this->conn->createQueryBuilder();
|
||||||
* @var \Doctrine\DBAL\Connection $conn
|
|
||||||
*/
|
|
||||||
$conn = Zend_Registry::get('doctrine');
|
|
||||||
$queryBuilder = $conn->createQueryBuilder();
|
|
||||||
$queryBuilder->select($columnsDisplay)->from('jo.tabNaf5');
|
$queryBuilder->select($columnsDisplay)->from('jo.tabNaf5');
|
||||||
if ($id !== null) {
|
if ($id !== null) {
|
||||||
$queryBuilder->where('codNaf5 = :id');
|
$queryBuilder->where('codNaf5 = :id');
|
||||||
@ -101,11 +97,7 @@ class Catalog extends Scores_Ws_Server
|
|||||||
|
|
||||||
// Data
|
// Data
|
||||||
try {
|
try {
|
||||||
/**
|
$queryBuilder = $this->conn->createQueryBuilder();
|
||||||
* @var \Doctrine\DBAL\Connection $conn
|
|
||||||
*/
|
|
||||||
$conn = Zend_Registry::get('doctrine');
|
|
||||||
$queryBuilder = $conn->createQueryBuilder();
|
|
||||||
$queryBuilder->select($columnsDisplay)->from('insee.tabVilles');
|
$queryBuilder->select($columnsDisplay)->from('insee.tabVilles');
|
||||||
if ($id !== null) {
|
if ($id !== null) {
|
||||||
$queryBuilder->where('codePostal = :id');
|
$queryBuilder->where('codePostal = :id');
|
||||||
@ -165,11 +157,7 @@ class Catalog extends Scores_Ws_Server
|
|||||||
|
|
||||||
// Data
|
// Data
|
||||||
try {
|
try {
|
||||||
/**
|
$queryBuilder = $this->conn->createQueryBuilder();
|
||||||
* @var \Doctrine\DBAL\Connection $conn
|
|
||||||
*/
|
|
||||||
$conn = Zend_Registry::get('doctrine');
|
|
||||||
$queryBuilder = $conn->createQueryBuilder();
|
|
||||||
$queryBuilder->select($columnsDisplay)->from('insee.departements');
|
$queryBuilder->select($columnsDisplay)->from('insee.departements');
|
||||||
if ($id !== null) {
|
if ($id !== null) {
|
||||||
$queryBuilder->where('numdep = :id');
|
$queryBuilder->where('numdep = :id');
|
||||||
@ -230,11 +218,7 @@ class Catalog extends Scores_Ws_Server
|
|||||||
|
|
||||||
// Data
|
// Data
|
||||||
try {
|
try {
|
||||||
/**
|
$queryBuilder = $this->conn->createQueryBuilder();
|
||||||
* @var \Doctrine\DBAL\Connection $conn
|
|
||||||
*/
|
|
||||||
$conn = Zend_Registry::get('doctrine');
|
|
||||||
$queryBuilder = $conn->createQueryBuilder();
|
|
||||||
$queryBuilder->select($columnsDisplay)->from('jo.tabFJur');
|
$queryBuilder->select($columnsDisplay)->from('jo.tabFJur');
|
||||||
if ($id !== null) {
|
if ($id !== null) {
|
||||||
$queryBuilder->where('code = :id');
|
$queryBuilder->where('code = :id');
|
||||||
@ -294,11 +278,7 @@ class Catalog extends Scores_Ws_Server
|
|||||||
|
|
||||||
// Data
|
// Data
|
||||||
try {
|
try {
|
||||||
/**
|
$queryBuilder = $this->conn->createQueryBuilder();
|
||||||
* @var \Doctrine\DBAL\Connection $conn
|
|
||||||
*/
|
|
||||||
$conn = Zend_Registry::get('doctrine');
|
|
||||||
$queryBuilder = $conn->createQueryBuilder();
|
|
||||||
$queryBuilder->select($columnsDisplay)->from('jo.tabEvenements');
|
$queryBuilder->select($columnsDisplay)->from('jo.tabEvenements');
|
||||||
if ($id !== null) {
|
if ($id !== null) {
|
||||||
$queryBuilder->where('codeEven = :id');
|
$queryBuilder->where('codeEven = :id');
|
||||||
@ -375,11 +355,7 @@ class Catalog extends Scores_Ws_Server
|
|||||||
|
|
||||||
// Data
|
// Data
|
||||||
try {
|
try {
|
||||||
/**
|
$queryBuilder = $this->conn->createQueryBuilder();
|
||||||
* @var \Doctrine\DBAL\Connection $conn
|
|
||||||
*/
|
|
||||||
$conn = Zend_Registry::get('doctrine');
|
|
||||||
$queryBuilder = $conn->createQueryBuilder();
|
|
||||||
$queryBuilder->select($columnsDisplay)->from('jo.tabPays');
|
$queryBuilder->select($columnsDisplay)->from('jo.tabPays');
|
||||||
if ($id !== null) {
|
if ($id !== null) {
|
||||||
$queryBuilder->where('codPays3 = :id');
|
$queryBuilder->where('codPays3 = :id');
|
||||||
@ -423,11 +399,7 @@ class Catalog extends Scores_Ws_Server
|
|||||||
|
|
||||||
// Data
|
// Data
|
||||||
try {
|
try {
|
||||||
/**
|
$queryBuilder = $this->conn->createQueryBuilder();
|
||||||
* @var \Doctrine\DBAL\Connection $conn
|
|
||||||
*/
|
|
||||||
$conn = Zend_Registry::get('doctrine');
|
|
||||||
$queryBuilder = $conn->createQueryBuilder();
|
|
||||||
$queryBuilder->select($columnsDisplay)->from('jo.tabDevises');
|
$queryBuilder->select($columnsDisplay)->from('jo.tabDevises');
|
||||||
if ($id !== null) {
|
if ($id !== null) {
|
||||||
$queryBuilder->where('devIso = :id');
|
$queryBuilder->where('devIso = :id');
|
||||||
@ -488,11 +460,7 @@ class Catalog extends Scores_Ws_Server
|
|||||||
|
|
||||||
// Data
|
// Data
|
||||||
try {
|
try {
|
||||||
/**
|
$queryBuilder = $this->conn->createQueryBuilder();
|
||||||
* @var \Doctrine\DBAL\Connection $conn
|
|
||||||
*/
|
|
||||||
$conn = Zend_Registry::get('doctrine');
|
|
||||||
$queryBuilder = $conn->createQueryBuilder();
|
|
||||||
$queryBuilder->select($columnsDisplay)->from('jo.bodacc_fonctions');
|
$queryBuilder->select($columnsDisplay)->from('jo.bodacc_fonctions');
|
||||||
if ($id !== null) {
|
if ($id !== null) {
|
||||||
$queryBuilder->where('codeFct = :id');
|
$queryBuilder->where('codeFct = :id');
|
||||||
|
Loading…
Reference in New Issue
Block a user