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
e3985a10
Commit
e3985a10
authored
Oct 08, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
actualizacion logica
parent
28bb4eb7
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
424 additions
and
0 deletions
+424
-0
src/Command/VerificarSuscripcionKushkiCommand.php
src/Command/VerificarSuscripcionKushkiCommand.php
+201
-0
src/Entity/PluEstadoSuscripcionKushki.php
src/Entity/PluEstadoSuscripcionKushki.php
+163
-0
src/Repository/PluEstadoSuscripcionKushkiRepository.php
src/Repository/PluEstadoSuscripcionKushkiRepository.php
+60
-0
No files found.
src/Command/VerificarSuscripcionKushkiCommand.php
0 → 100644
View file @
e3985a10
This diff is collapsed.
Click to expand it.
src/Entity/PluEstadoSuscripcionKushki.php
0 → 100644
View file @
e3985a10
<?php
namespace
App\Entity
;
use
Doctrine\ORM\Mapping
as
ORM
;
/**
* @ORM\Table(name="plu_estado_suscripcion_kushki", indexes={@ORM\Index(name="idx_fk_plu_suscripcion_kushki", columns={"sus_id"})})
* @ORM\Entity(repositoryClass="App\Repository\PluEstadoSuscripcionKushkiRepository")
*/
class
PluEstadoSuscripcionKushki
{
const
VIGENTE
=
1
;
const
NO_VIGENTE
=
0
;
const
TIPO_SUSCRIPCION
=
1
;
/**
* @var int
*
* @ORM\Column(name="esk_id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private
$eskId
;
/**
* @var \PluSuscripcion
*
* @ORM\ManyToOne(targetEntity="PluSuscripcion")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="sus_id", referencedColumnName="sus_id")
* })
*/
private
$susId
;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private
$eskTipo
;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private
$eskEstado
;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private
$eskIntento
;
/**
* @ORM\Column(type="text", nullable=true)
*/
private
$eskRespuestaNotificacion
;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private
$createdAt
;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private
$updatedAt
;
public
function
getEskId
()
:
?int
{
return
$this
->
eskId
;
}
public
function
setEskId
(
int
$eskId
)
:
self
{
$this
->
eskId
=
$eskId
;
return
$this
;
}
public
function
getEskTipo
()
:
?int
{
return
$this
->
eskTipo
;
}
public
function
setEskTipo
(
?int
$eskTipo
)
:
self
{
$this
->
eskTipo
=
$eskTipo
;
return
$this
;
}
public
function
getEskEstado
()
:
?int
{
return
$this
->
eskEstado
;
}
public
function
setEskEstado
(
?int
$eskEstado
)
:
self
{
$this
->
eskEstado
=
$eskEstado
;
return
$this
;
}
public
function
getEskIntento
()
:
?int
{
return
$this
->
eskIntento
;
}
public
function
setEskIntento
(
?int
$eskIntento
)
:
self
{
$this
->
eskIntento
=
$eskIntento
;
return
$this
;
}
public
function
getEskRespuestaNotificacion
()
:
?string
{
return
$this
->
eskRespuestaNotificacion
;
}
public
function
setEskRespuestaNotificacion
(
?string
$eskRespuestaNotificacion
)
:
self
{
$this
->
eskRespuestaNotificacion
=
$eskRespuestaNotificacion
;
return
$this
;
}
public
function
getCreatedAt
()
:
?
\DateTimeInterface
{
return
$this
->
createdAt
;
}
public
function
setCreatedAt
(
?
\DateTimeInterface
$createdAt
)
:
self
{
$this
->
createdAt
=
$createdAt
;
return
$this
;
}
public
function
getUpdatedAt
()
:
?
\DateTimeInterface
{
return
$this
->
updatedAt
;
}
public
function
setUpdatedAt
(
?
\DateTimeInterface
$updatedAt
)
:
self
{
$this
->
updatedAt
=
$updatedAt
;
return
$this
;
}
public
function
getSusId
()
:
?
PluSuscripcion
{
return
$this
->
susId
;
}
public
function
setSusId
(
?
PluSuscripcion
$susId
)
:
self
{
$this
->
susId
=
$susId
;
return
$this
;
}
}
src/Repository/PluEstadoSuscripcionKushkiRepository.php
0 → 100644
View file @
e3985a10
<?php
namespace
App\Repository
;
use
App\Entity\PluEstadoSuscripcionKushki
;
use
Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository
;
use
Symfony\Bridge\Doctrine\RegistryInterface
;
/**
* @method PluEstadoSuscripcionKushki|null find($id, $lockMode = null, $lockVersion = null)
* @method PluEstadoSuscripcionKushki|null findOneBy(array $criteria, array $orderBy = null)
* @method PluEstadoSuscripcionKushki[] findAll()
* @method PluEstadoSuscripcionKushki[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class
PluEstadoSuscripcionKushkiRepository
extends
ServiceEntityRepository
{
public
function
__construct
(
RegistryInterface
$registry
)
{
parent
::
__construct
(
$registry
,
PluEstadoSuscripcionKushki
::
class
);
}
public
function
buscarRegistroEstado
(
$value
)
{
return
$this
->
createQueryBuilder
(
'p'
)
->
andWhere
(
'p.susId = :val'
)
->
setParameter
(
'val'
,
$value
)
->
getQuery
()
->
getOneOrNullResult
()
;
}
// /**
// * @return PluEstadoSuscripcionKushki[] Returns an array of PluEstadoSuscripcionKushki objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('p')
->andWhere('p.exampleField = :val')
->setParameter('val', $value)
->orderBy('p.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/
/*
public function findOneBySomeField($value): ?PluEstadoSuscripcionKushki
{
return $this->createQueryBuilder('p')
->andWhere('p.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}
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