Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
musica_listas_umusic
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
musica_listas_umusic
Commits
4f1715b8
Commit
4f1715b8
authored
Aug 23, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
actualizacion
parent
8d1e2d75
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
22 deletions
+7
-22
src/Repository/PluParametroConfiguracionRepository.php
src/Repository/PluParametroConfiguracionRepository.php
+4
-19
src/Utilities/Utiles.php
src/Utilities/Utiles.php
+3
-3
No files found.
src/Repository/PluParametroConfiguracionRepository.php
View file @
4f1715b8
...
...
@@ -22,29 +22,14 @@ class PluParametroConfiguracionRepository extends ServiceEntityRepository
// /**
// * @return PluParametroConfiguracion[] Returns an array of PluParametroConfiguracion objects
// */
/*
public function
findByExampleField
($value)
public
function
getParametroConfiguracion
(
$value
)
{
return
$this
->
createQueryBuilder
(
'p'
)
->andWhere('p.
exampleField
= :val')
->
andWhere
(
'p.
pcoNombre
= :val'
)
->
setParameter
(
'val'
,
$value
)
->orderBy('p.id', 'ASC')
->setMaxResults(10)
->
getQuery
()
->getResult(
)
->
getResult
(
\Doctrine\ORM\Query
::
HYDRATE_OBJECT
)[
0
]
;
}
*/
/*
public function findOneBySomeField($value): ?PluParametroConfiguracion
{
return $this->createQueryBuilder('p')
->andWhere('p.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}
src/Utilities/Utiles.php
View file @
4f1715b8
...
...
@@ -5,7 +5,7 @@ namespace App\Utilities;
use
Monolog\Logger
;
use
Monolog\Formatter\LineFormatter
;
use
Monolog\Handler\StreamHandler
;
use
App
Bundle\Model\ParametroConfiguracionQuery
;
use
App
\Entity\PluParametroConfiguracion
;
/*
* To change this license header, choose License Headers in Project Properties.
...
...
@@ -31,11 +31,11 @@ class Utiles {
return
$log
;
}
public
static
function
getParametroConfiguracion
(
$nombre
)
{
public
static
function
getParametroConfiguracion
(
$nombre
,
$em
)
{
$str_valor
=
''
;
$parametro
=
ParametroConfiguracionQuery
::
create
()
->
findOneByPcoNombre
(
$nombre
);
$parametro
=
$em
->
getRepository
(
PluParametroConfiguracion
::
class
)
->
getParametroConfiguracion
(
$nombre
);
if
(
$parametro
)
$str_valor
=
$parametro
->
getPcoValor
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment