Commit bc657c3f authored by Ana's avatar Ana

cambios

parent df0c569d
...@@ -13,7 +13,7 @@ class AppKernel extends Kernel ...@@ -13,7 +13,7 @@ class AppKernel extends Kernel
new Symfony\Bundle\TwigBundle\TwigBundle(), new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(), new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(), new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), // new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new AppBundle\AppBundle(), new AppBundle\AppBundle(),
new Propel\PropelBundle\PropelBundle(), new Propel\PropelBundle\PropelBundle(),
......
...@@ -389,7 +389,7 @@ class SymfonyRequirements extends RequirementCollection ...@@ -389,7 +389,7 @@ class SymfonyRequirements extends RequirementCollection
{ {
/* mandatory requirements follow */ /* mandatory requirements follow */
$installedPhpVersion = phpversion(); $installedPhpVersion = PHP_VERSION;
$requiredPhpVersion = $this->getPhpRequiredVersion(); $requiredPhpVersion = $this->getPhpRequiredVersion();
$this->addRecommendation( $this->addRecommendation(
...@@ -448,15 +448,8 @@ class SymfonyRequirements extends RequirementCollection ...@@ -448,15 +448,8 @@ class SymfonyRequirements extends RequirementCollection
} }
if (false !== $requiredPhpVersion && version_compare($installedPhpVersion, $requiredPhpVersion, '>=')) { if (false !== $requiredPhpVersion && version_compare($installedPhpVersion, $requiredPhpVersion, '>=')) {
$timezones = array();
foreach (DateTimeZone::listAbbreviations() as $abbreviations) {
foreach ($abbreviations as $abbreviation) {
$timezones[$abbreviation['timezone_id']] = true;
}
}
$this->addRequirement( $this->addRequirement(
isset($timezones[@date_default_timezone_get()]), in_array(@date_default_timezone_get(), DateTimeZone::listIdentifiers(), true),
sprintf('Configured default timezone "%s" must be supported by your installation of PHP', @date_default_timezone_get()), sprintf('Configured default timezone "%s" must be supported by your installation of PHP', @date_default_timezone_get()),
'Your default timezone is not supported by PHP. Check for typos in your <strong>php.ini</strong> file and have a look at the list of deprecated timezones at <a href="http://php.net/manual/en/timezones.others.php">http://php.net/manual/en/timezones.others.php</a>.' 'Your default timezone is not supported by PHP. Check for typos in your <strong>php.ini</strong> file and have a look at the list of deprecated timezones at <a href="http://php.net/manual/en/timezones.others.php">http://php.net/manual/en/timezones.others.php</a>.'
); );
...@@ -633,12 +626,6 @@ class SymfonyRequirements extends RequirementCollection ...@@ -633,12 +626,6 @@ class SymfonyRequirements extends RequirementCollection
'Install and enable the <strong>mbstring</strong> extension.' 'Install and enable the <strong>mbstring</strong> extension.'
); );
$this->addRecommendation(
function_exists('iconv'),
'iconv() should be available',
'Install and enable the <strong>iconv</strong> extension.'
);
$this->addRecommendation( $this->addRecommendation(
function_exists('utf8_decode'), function_exists('utf8_decode'),
'utf8_decode() should be available', 'utf8_decode() should be available',
...@@ -737,7 +724,7 @@ class SymfonyRequirements extends RequirementCollection ...@@ -737,7 +724,7 @@ class SymfonyRequirements extends RequirementCollection
'Install and/or enable a <strong>PHP accelerator</strong> (highly recommended).' 'Install and/or enable a <strong>PHP accelerator</strong> (highly recommended).'
); );
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { if ('WIN' === strtoupper(substr(PHP_OS, 0, 3))) {
$this->addRecommendation( $this->addRecommendation(
$this->getRealpathCacheSize() >= 5 * 1024 * 1024, $this->getRealpathCacheSize() >= 5 * 1024 * 1024,
'realpath_cache_size should be at least 5M in php.ini', 'realpath_cache_size should be at least 5M in php.ini',
...@@ -780,7 +767,11 @@ class SymfonyRequirements extends RequirementCollection ...@@ -780,7 +767,11 @@ class SymfonyRequirements extends RequirementCollection
{ {
$size = ini_get('realpath_cache_size'); $size = ini_get('realpath_cache_size');
$size = trim($size); $size = trim($size);
$unit = '';
if (!ctype_digit($size)) {
$unit = strtolower(substr($size, -1, 1)); $unit = strtolower(substr($size, -1, 1));
$size = (int) substr($size, 0, -1);
}
switch ($unit) { switch ($unit) {
case 'g': case 'g':
return $size * 1024 * 1024 * 1024; return $size * 1024 * 1024 * 1024;
......
<?php <?php
use Doctrine\Common\Annotations\AnnotationRegistry; //use Doctrine\Common\Annotations\AnnotationRegistry;
use Composer\Autoload\ClassLoader; use Composer\Autoload\ClassLoader;
/** @var ClassLoader $loader */ /** @var ClassLoader $loader */
$loader = require __DIR__.'/../vendor/autoload.php'; $loader = require __DIR__.'/../vendor/autoload.php';
AnnotationRegistry::registerLoader(array($loader, 'loadClass')); //AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
return $loader; return $loader;
...@@ -37,15 +37,15 @@ twig: ...@@ -37,15 +37,15 @@ twig:
strict_variables: "%kernel.debug%" strict_variables: "%kernel.debug%"
# Doctrine Configuration # Doctrine Configuration
doctrine: #doctrine:
dbal: #dbal:
driver: pdo_mysql # driver: pdo_mysql
host: "%database_host%" # host: "%database_host%"
port: "%database_port%" # port: "%database_port%"
dbname: "%database_name%" # dbname: "%database_name%"
user: "%database_user%" # user: "%database_user%"
password: "%database_password%" # password: "%database_password%"
charset: UTF8 # charset: UTF8
# if using pdo_sqlite as your database driver: # if using pdo_sqlite as your database driver:
# 1. add the path in parameters.yml # 1. add the path in parameters.yml
# e.g. database_path: "%kernel.root_dir%/data/data.db3" # e.g. database_path: "%kernel.root_dir%/data/data.db3"
...@@ -53,10 +53,10 @@ doctrine: ...@@ -53,10 +53,10 @@ doctrine:
# 3. Uncomment next line: # 3. Uncomment next line:
# path: "%database_path%" # path: "%database_path%"
orm: #orm:
auto_generate_proxy_classes: "%kernel.debug%" # auto_generate_proxy_classes: "%kernel.debug%"
naming_strategy: doctrine.orm.naming_strategy.underscore # naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true # auto_mapping: true*/
# Swiftmailer Configuration # Swiftmailer Configuration
swiftmailer: swiftmailer:
......
...@@ -20,4 +20,16 @@ ...@@ -20,4 +20,16 @@
<parameter name="Engine" value="InnoDB"/> <parameter name="Engine" value="InnoDB"/>
</vendor> </vendor>
</table> </table>
<table name="respuestas_sms" phpName="RespuestasSms" idMethod="native">
<column name="res_id" phpName="ResId" type="INTEGER" primaryKey="true" required="true"/>
<column name="res_proveedor_sms" phpName="ResProveedorSms" type="INTEGER" required="true"/>
<column name="res_emisor" phpName="ResEmisor" type="INTEGER" required="true"/>
<column name="res_mensaje" phpName="ResMensaje" type="LONGVARCHAR" required="true"/>
<column name="res_http_code_respuesta_peticion" phpName="ResHttpCodeRespuestaPeticion" type="INTEGER" required="true"/>
<column name="created_at" phpName="CreatedAt" type="TIMESTAMP" required="true" defaultExpr="CURRENT_TIMESTAMP"/>
<column name="updated_at" phpName="UpdatedAt" type="TIMESTAMP" required="true" defaultValue="0000-00-00 00:00:00"/>
<vendor type="mysql">
<parameter name="Engine" value="InnoDB"/>
</vendor>
</table>
</database> </database>
This source diff could not be displayed because it is too large. You can view the blob instead.
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 12-07-2019 a las 04:32:49
-- Versión del servidor: 10.1.26-MariaDB
-- Versión de PHP: 7.1.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de datos: `apidb`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `respuestas_sms`
--
CREATE TABLE `respuestas_sms` (
`res_id` int(11) NOT NULL,
`res_proveedor_sms` int(11) NOT NULL,
`res_emisor` int(11) NOT NULL,
`res_mensaje` text NOT NULL,
`res_http_code_respuesta_peticion` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `respuestas_sms`
--
ALTER TABLE `respuestas_sms`
ADD PRIMARY KEY (`res_id`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<?php
namespace AppBundle\Model;
use AppBundle\Model\om\BaseRespuestasSms;
class RespuestasSms extends BaseRespuestasSms
{
}
<?php
namespace AppBundle\Model;
use AppBundle\Model\om\BaseRespuestasSmsPeer;
class RespuestasSmsPeer extends BaseRespuestasSmsPeer
{
}
<?php
namespace AppBundle\Model;
use AppBundle\Model\om\BaseRespuestasSmsQuery;
class RespuestasSmsQuery extends BaseRespuestasSmsQuery
{
}
<?php
namespace AppBundle\Model\map;
use \RelationMap;
use \TableMap;
/**
* This class defines the structure of the 'respuestas_sms' table.
*
*
*
* This map class is used by Propel to do runtime db structure discovery.
* For example, the createSelectSql() method checks the type of a given column used in an
* ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
* (i.e. if it's a text column type).
*
* @package propel.generator.src.AppBundle.Model.map
*/
class RespuestasSmsTableMap extends TableMap
{
/**
* The (dot-path) name of this class
*/
const CLASS_NAME = 'src.AppBundle.Model.map.RespuestasSmsTableMap';
/**
* Initialize the table attributes, columns and validators
* Relations are not initialized by this method since they are lazy loaded
*
* @return void
* @throws PropelException
*/
public function initialize()
{
// attributes
$this->setName('respuestas_sms');
$this->setPhpName('RespuestasSms');
$this->setClassname('AppBundle\\Model\\RespuestasSms');
$this->setPackage('src.AppBundle.Model');
$this->setUseIdGenerator(false);
// columns
$this->addPrimaryKey('res_id', 'ResId', 'INTEGER', true, null, null);
$this->addColumn('res_proveedor_sms', 'ResProveedorSms', 'INTEGER', true, null, null);
$this->addColumn('res_emisor', 'ResEmisor', 'INTEGER', true, null, null);
$this->addColumn('res_mensaje', 'ResMensaje', 'LONGVARCHAR', true, null, null);
$this->addColumn('res_http_code_respuesta_peticion', 'ResHttpCodeRespuestaPeticion', 'INTEGER', true, null, null);
$this->addColumn('created_at', 'CreatedAt', 'TIMESTAMP', true, null, 'CURRENT_TIMESTAMP');
$this->addColumn('updated_at', 'UpdatedAt', 'TIMESTAMP', true, null, '0000-00-00 00:00:00');
// validators
} // initialize()
/**
* Build the RelationMap objects for this table relationships
*/
public function buildRelations()
{
} // buildRelations()
} // RespuestasSmsTableMap
<?php
namespace AppBundle\Model\om;
use \BaseObject;
use \BasePeer;
use \Criteria;
use \DateTime;
use \Exception;
use \PDO;
use \Persistent;
use \Propel;
use \PropelDateTime;
use \PropelException;
use \PropelPDO;
use AppBundle\Model\RespuestasSms;
use AppBundle\Model\RespuestasSmsPeer;
use AppBundle\Model\RespuestasSmsQuery;
abstract class BaseRespuestasSms extends BaseObject implements Persistent
{
/**
* Peer class name
*/
const PEER = 'AppBundle\\Model\\RespuestasSmsPeer';
/**
* The Peer class.
* Instance provides a convenient way of calling static methods on a class
* that calling code may not be able to identify.
* @var RespuestasSmsPeer
*/
protected static $peer;
/**
* The flag var to prevent infinite loop in deep copy
* @var boolean
*/
protected $startCopy = false;
/**
* The value for the res_id field.
* @var int
*/
protected $res_id;
/**
* The value for the res_proveedor_sms field.
* @var int
*/
protected $res_proveedor_sms;
/**
* The value for the res_emisor field.
* @var int
*/
protected $res_emisor;
/**
* The value for the res_mensaje field.
* @var string
*/
protected $res_mensaje;
/**
* The value for the res_http_code_respuesta_peticion field.
* @var int
*/
protected $res_http_code_respuesta_peticion;
/**
* The value for the created_at field.
* Note: this column has a database default value of: (expression) CURRENT_TIMESTAMP
* @var string
*/
protected $created_at;
/**
* The value for the updated_at field.
* Note: this column has a database default value of: NULL
* @var string
*/
protected $updated_at;
/**
* Flag to prevent endless save loop, if this object is referenced
* by another object which falls in this transaction.
* @var boolean
*/
protected $alreadyInSave = false;
/**
* Flag to prevent endless validation loop, if this object is referenced
* by another object which falls in this transaction.
* @var boolean
*/
protected $alreadyInValidation = false;
/**
* Flag to prevent endless clearAllReferences($deep=true) loop, if this object is referenced
* @var boolean
*/
protected $alreadyInClearAllReferencesDeep = false;
/**
* Applies default values to this object.
* This method should be called from the object's constructor (or
* equivalent initialization method).
* @see __construct()
*/
public function applyDefaultValues()
{
$this->updated_at = NULL;
}
/**
* Initializes internal state of BaseRespuestasSms object.
* @see applyDefaults()
*/
public function __construct()
{
parent::__construct();
$this->applyDefaultValues();
}
/**
* Get the [res_id] column value.
*
* @return int
*/
public function getResId()
{
return $this->res_id;
}
/**
* Get the [res_proveedor_sms] column value.
*
* @return int
*/
public function getResProveedorSms()
{
return $this->res_proveedor_sms;
}
/**
* Get the [res_emisor] column value.
*
* @return int
*/
public function getResEmisor()
{
return $this->res_emisor;
}
/**
* Get the [res_mensaje] column value.
*
* @return string
*/
public function getResMensaje()
{
return $this->res_mensaje;
}
/**
* Get the [res_http_code_respuesta_peticion] column value.
*
* @return int
*/
public function getResHttpCodeRespuestaPeticion()
{
return $this->res_http_code_respuesta_peticion;
}
/**
* Get the [optionally formatted] temporal [created_at] column value.
*
*
* @param string $format The date/time format string (either date()-style or strftime()-style).
* If format is null, then the raw DateTime object will be returned.
* @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null, and 0 if column value is 0000-00-00 00:00:00
* @throws PropelException - if unable to parse/validate the date/time value.
*/
public function getCreatedAt($format = null)
{
if ($this->created_at === null) {
return null;
}
if ($this->created_at === '0000-00-00 00:00:00') {
// while technically this is not a default value of null,
// this seems to be closest in meaning.
return null;
}
try {
$dt = new DateTime($this->created_at);
} catch (Exception $x) {
throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->created_at, true), $x);
}
if ($format === null) {
// Because propel.useDateTimeClass is true, we return a DateTime object.
return $dt;
}
if (strpos($format, '%') !== false) {
return strftime($format, $dt->format('U'));
}
return $dt->format($format);
}
/**
* Get the [optionally formatted] temporal [updated_at] column value.
*
*
* @param string $format The date/time format string (either date()-style or strftime()-style).
* If format is null, then the raw DateTime object will be returned.
* @return mixed Formatted date/time value as string or DateTime object (if format is null), null if column is null, and 0 if column value is 0000-00-00 00:00:00
* @throws PropelException - if unable to parse/validate the date/time value.
*/
public function getUpdatedAt($format = null)
{
if ($this->updated_at === null) {
return null;
}
if ($this->updated_at === '0000-00-00 00:00:00') {
// while technically this is not a default value of null,
// this seems to be closest in meaning.
return null;
}
try {
$dt = new DateTime($this->updated_at);
} catch (Exception $x) {
throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->updated_at, true), $x);
}
if ($format === null) {
// Because propel.useDateTimeClass is true, we return a DateTime object.
return $dt;
}
if (strpos($format, '%') !== false) {
return strftime($format, $dt->format('U'));
}
return $dt->format($format);
}
/**
* Set the value of [res_id] column.
*
* @param int $v new value
* @return RespuestasSms The current object (for fluent API support)
*/
public function setResId($v)
{
if ($v !== null && is_numeric($v)) {
$v = (int) $v;
}
if ($this->res_id !== $v) {
$this->res_id = $v;
$this->modifiedColumns[] = RespuestasSmsPeer::RES_ID;
}
return $this;
} // setResId()
/**
* Set the value of [res_proveedor_sms] column.
*
* @param int $v new value
* @return RespuestasSms The current object (for fluent API support)
*/
public function setResProveedorSms($v)
{
if ($v !== null && is_numeric($v)) {
$v = (int) $v;
}
if ($this->res_proveedor_sms !== $v) {
$this->res_proveedor_sms = $v;
$this->modifiedColumns[] = RespuestasSmsPeer::RES_PROVEEDOR_SMS;
}
return $this;
} // setResProveedorSms()
/**
* Set the value of [res_emisor] column.
*
* @param int $v new value
* @return RespuestasSms The current object (for fluent API support)
*/
public function setResEmisor($v)
{
if ($v !== null && is_numeric($v)) {
$v = (int) $v;
}
if ($this->res_emisor !== $v) {
$this->res_emisor = $v;
$this->modifiedColumns[] = RespuestasSmsPeer::RES_EMISOR;
}
return $this;
} // setResEmisor()
/**
* Set the value of [res_mensaje] column.
*
* @param string $v new value
* @return RespuestasSms The current object (for fluent API support)
*/
public function setResMensaje($v)
{
if ($v !== null) {
$v = (string) $v;
}
if ($this->res_mensaje !== $v) {
$this->res_mensaje = $v;
$this->modifiedColumns[] = RespuestasSmsPeer::RES_MENSAJE;
}
return $this;
} // setResMensaje()
/**
* Set the value of [res_http_code_respuesta_peticion] column.
*
* @param int $v new value
* @return RespuestasSms The current object (for fluent API support)
*/
public function setResHttpCodeRespuestaPeticion($v)
{
if ($v !== null && is_numeric($v)) {
$v = (int) $v;
}
if ($this->res_http_code_respuesta_peticion !== $v) {
$this->res_http_code_respuesta_peticion = $v;
$this->modifiedColumns[] = RespuestasSmsPeer::RES_HTTP_CODE_RESPUESTA_PETICION;
}
return $this;
} // setResHttpCodeRespuestaPeticion()
/**
* Sets the value of [created_at] column to a normalized version of the date/time value specified.
*
* @param mixed $v string, integer (timestamp), or DateTime value.
* Empty strings are treated as null.
* @return RespuestasSms The current object (for fluent API support)
*/
public function setCreatedAt($v)
{
$dt = PropelDateTime::newInstance($v, null, 'DateTime');
if ($this->created_at !== null || $dt !== null) {
$currentDateAsString = ($this->created_at !== null && $tmpDt = new DateTime($this->created_at)) ? $tmpDt->format('Y-m-d H:i:s') : null;
$newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
if ($currentDateAsString !== $newDateAsString) {
$this->created_at = $newDateAsString;
$this->modifiedColumns[] = RespuestasSmsPeer::CREATED_AT;
}
} // if either are not null
return $this;
} // setCreatedAt()
/**
* Sets the value of [updated_at] column to a normalized version of the date/time value specified.
*
* @param mixed $v string, integer (timestamp), or DateTime value.
* Empty strings are treated as null.
* @return RespuestasSms The current object (for fluent API support)
*/
public function setUpdatedAt($v)
{
$dt = PropelDateTime::newInstance($v, null, 'DateTime');
if ($this->updated_at !== null || $dt !== null) {
$currentDateAsString = ($this->updated_at !== null && $tmpDt = new DateTime($this->updated_at)) ? $tmpDt->format('Y-m-d H:i:s') : null;
$newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
if ( ($currentDateAsString !== $newDateAsString) // normalized values don't match
|| ($dt->format('Y-m-d H:i:s') === NULL) // or the entered value matches the default
) {
$this->updated_at = $newDateAsString;
$this->modifiedColumns[] = RespuestasSmsPeer::UPDATED_AT;
}
} // if either are not null
return $this;
} // setUpdatedAt()
/**
* Indicates whether the columns in this object are only set to default values.
*
* This method can be used in conjunction with isModified() to indicate whether an object is both
* modified _and_ has some values set which are non-default.
*
* @return boolean Whether the columns in this object are only been set with default values.
*/
public function hasOnlyDefaultValues()
{
if ($this->updated_at !== NULL) {
return false;
}
// otherwise, everything was equal, so return true
return true;
} // hasOnlyDefaultValues()
/**
* Hydrates (populates) the object variables with values from the database resultset.
*
* An offset (0-based "start column") is specified so that objects can be hydrated
* with a subset of the columns in the resultset rows. This is needed, for example,
* for results of JOIN queries where the resultset row includes columns from two or
* more tables.
*
* @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM)
* @param int $startcol 0-based offset column which indicates which resultset column to start with.
* @param boolean $rehydrate Whether this object is being re-hydrated from the database.
* @return int next starting column
* @throws PropelException - Any caught Exception will be rewrapped as a PropelException.
*/
public function hydrate($row, $startcol = 0, $rehydrate = false)
{
try {
$this->res_id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null;
$this->res_proveedor_sms = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null;
$this->res_emisor = ($row[$startcol + 2] !== null) ? (int) $row[$startcol + 2] : null;
$this->res_mensaje = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null;
$this->res_http_code_respuesta_peticion = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null;
$this->created_at = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null;
$this->updated_at = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null;
$this->resetModified();
$this->setNew(false);
if ($rehydrate) {
$this->ensureConsistency();
}
$this->postHydrate($row, $startcol, $rehydrate);
return $startcol + 7; // 7 = RespuestasSmsPeer::NUM_HYDRATE_COLUMNS.
} catch (Exception $e) {
throw new PropelException("Error populating RespuestasSms object", $e);
}
}
/**
* Checks and repairs the internal consistency of the object.
*
* This method is executed after an already-instantiated object is re-hydrated
* from the database. It exists to check any foreign keys to make sure that
* the objects related to the current object are correct based on foreign key.
*
* You can override this method in the stub class, but you should always invoke
* the base method from the overridden method (i.e. parent::ensureConsistency()),
* in case your model changes.
*
* @throws PropelException
*/
public function ensureConsistency()
{
} // ensureConsistency
/**
* Reloads this object from datastore based on primary key and (optionally) resets all associated objects.
*
* This will only work if the object has been saved and has a valid primary key set.
*
* @param boolean $deep (optional) Whether to also de-associated any related objects.
* @param PropelPDO $con (optional) The PropelPDO connection to use.
* @return void
* @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db
*/
public function reload($deep = false, PropelPDO $con = null)
{
if ($this->isDeleted()) {
throw new PropelException("Cannot reload a deleted object.");
}
if ($this->isNew()) {
throw new PropelException("Cannot reload an unsaved object.");
}
if ($con === null) {
$con = Propel::getConnection(RespuestasSmsPeer::DATABASE_NAME, Propel::CONNECTION_READ);
}
// We don't need to alter the object instance pool; we're just modifying this instance
// already in the pool.
$stmt = RespuestasSmsPeer::doSelectStmt($this->buildPkeyCriteria(), $con);
$row = $stmt->fetch(PDO::FETCH_NUM);
$stmt->closeCursor();
if (!$row) {
throw new PropelException('Cannot find matching row in the database to reload object values.');
}
$this->hydrate($row, 0, true); // rehydrate
if ($deep) { // also de-associate any related objects?
} // if (deep)
}
/**
* Removes this object from datastore and sets delete attribute.
*
* @param PropelPDO $con
* @return void
* @throws PropelException
* @throws Exception
* @see BaseObject::setDeleted()
* @see BaseObject::isDeleted()
*/
public function delete(PropelPDO $con = null)
{
if ($this->isDeleted()) {
throw new PropelException("This object has already been deleted.");
}
if ($con === null) {
$con = Propel::getConnection(RespuestasSmsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);
}
$con->beginTransaction();
try {
$deleteQuery = RespuestasSmsQuery::create()
->filterByPrimaryKey($this->getPrimaryKey());
$ret = $this->preDelete($con);
if ($ret) {
$deleteQuery->delete($con);
$this->postDelete($con);
$con->commit();
$this->setDeleted(true);
} else {
$con->commit();
}
} catch (Exception $e) {
$con->rollBack();
throw $e;
}
}
/**
* Persists this object to the database.
*
* If the object is new, it inserts it; otherwise an update is performed.
* All modified related objects will also be persisted in the doSave()
* method. This method wraps all precipitate database operations in a
* single transaction.
*
* @param PropelPDO $con
* @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
* @throws PropelException
* @throws Exception
* @see doSave()
*/
public function save(PropelPDO $con = null)
{
if ($this->isDeleted()) {
throw new PropelException("You cannot save an object that has been deleted.");
}
if ($con === null) {
$con = Propel::getConnection(RespuestasSmsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);
}
$con->beginTransaction();
$isInsert = $this->isNew();
try {
$ret = $this->preSave($con);
if ($isInsert) {
$ret = $ret && $this->preInsert($con);
} else {
$ret = $ret && $this->preUpdate($con);
}
if ($ret) {
$affectedRows = $this->doSave($con);
if ($isInsert) {
$this->postInsert($con);
} else {
$this->postUpdate($con);
}
$this->postSave($con);
RespuestasSmsPeer::addInstanceToPool($this);
} else {
$affectedRows = 0;
}
$con->commit();
return $affectedRows;
} catch (Exception $e) {
$con->rollBack();
throw $e;
}
}
/**
* Performs the work of inserting or updating the row in the database.
*
* If the object is new, it inserts it; otherwise an update is performed.
* All related objects are also updated in this method.
*
* @param PropelPDO $con
* @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
* @throws PropelException
* @see save()
*/
protected function doSave(PropelPDO $con)
{
$affectedRows = 0; // initialize var to track total num of affected rows
if (!$this->alreadyInSave) {
$this->alreadyInSave = true;
if ($this->isNew() || $this->isModified()) {
// persist changes
if ($this->isNew()) {
$this->doInsert($con);
} else {
$this->doUpdate($con);
}
$affectedRows += 1;
$this->resetModified();
}
$this->alreadyInSave = false;
}
return $affectedRows;
} // doSave()
/**
* Insert the row in the database.
*
* @param PropelPDO $con
*
* @throws PropelException
* @see doSave()
*/
protected function doInsert(PropelPDO $con)
{
$modifiedColumns = array();
$index = 0;
// check the columns in natural order for more readable SQL queries
if ($this->isColumnModified(RespuestasSmsPeer::RES_ID)) {
$modifiedColumns[':p' . $index++] = '`res_id`';
}
if ($this->isColumnModified(RespuestasSmsPeer::RES_PROVEEDOR_SMS)) {
$modifiedColumns[':p' . $index++] = '`res_proveedor_sms`';
}
if ($this->isColumnModified(RespuestasSmsPeer::RES_EMISOR)) {
$modifiedColumns[':p' . $index++] = '`res_emisor`';
}
if ($this->isColumnModified(RespuestasSmsPeer::RES_MENSAJE)) {
$modifiedColumns[':p' . $index++] = '`res_mensaje`';
}
if ($this->isColumnModified(RespuestasSmsPeer::RES_HTTP_CODE_RESPUESTA_PETICION)) {
$modifiedColumns[':p' . $index++] = '`res_http_code_respuesta_peticion`';
}
if ($this->isColumnModified(RespuestasSmsPeer::CREATED_AT)) {
$modifiedColumns[':p' . $index++] = '`created_at`';
}
if ($this->isColumnModified(RespuestasSmsPeer::UPDATED_AT)) {
$modifiedColumns[':p' . $index++] = '`updated_at`';
}
$sql = sprintf(
'INSERT INTO `respuestas_sms` (%s) VALUES (%s)',
implode(', ', $modifiedColumns),
implode(', ', array_keys($modifiedColumns))
);
try {
$stmt = $con->prepare($sql);
foreach ($modifiedColumns as $identifier => $columnName) {
switch ($columnName) {
case '`res_id`':
$stmt->bindValue($identifier, $this->res_id, PDO::PARAM_INT);
break;
case '`res_proveedor_sms`':
$stmt->bindValue($identifier, $this->res_proveedor_sms, PDO::PARAM_INT);
break;
case '`res_emisor`':
$stmt->bindValue($identifier, $this->res_emisor, PDO::PARAM_INT);
break;
case '`res_mensaje`':
$stmt->bindValue($identifier, $this->res_mensaje, PDO::PARAM_STR);
break;
case '`res_http_code_respuesta_peticion`':
$stmt->bindValue($identifier, $this->res_http_code_respuesta_peticion, PDO::PARAM_INT);
break;
case '`created_at`':
$stmt->bindValue($identifier, $this->created_at, PDO::PARAM_STR);
break;
case '`updated_at`':
$stmt->bindValue($identifier, $this->updated_at, PDO::PARAM_STR);
break;
}
}
$stmt->execute();
} catch (Exception $e) {
Propel::log($e->getMessage(), Propel::LOG_ERR);
throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), $e);
}
$this->setNew(false);
}
/**
* Update the row in the database.
*
* @param PropelPDO $con
*
* @see doSave()
*/
protected function doUpdate(PropelPDO $con)
{
$selectCriteria = $this->buildPkeyCriteria();
$valuesCriteria = $this->buildCriteria();
BasePeer::doUpdate($selectCriteria, $valuesCriteria, $con);
}
/**
* Array of ValidationFailed objects.
* @var array ValidationFailed[]
*/
protected $validationFailures = array();
/**
* Gets any ValidationFailed objects that resulted from last call to validate().
*
*
* @return array ValidationFailed[]
* @see validate()
*/
public function getValidationFailures()
{
return $this->validationFailures;
}
/**
* Validates the objects modified field values and all objects related to this table.
*
* If $columns is either a column name or an array of column names
* only those columns are validated.
*
* @param mixed $columns Column name or an array of column names.
* @return boolean Whether all columns pass validation.
* @see doValidate()
* @see getValidationFailures()
*/
public function validate($columns = null)
{
$res = $this->doValidate($columns);
if ($res === true) {
$this->validationFailures = array();
return true;
}
$this->validationFailures = $res;
return false;
}
/**
* This function performs the validation work for complex object models.
*
* In addition to checking the current object, all related objects will
* also be validated. If all pass then <code>true</code> is returned; otherwise
* an aggregated array of ValidationFailed objects will be returned.
*
* @param array $columns Array of column names to validate.
* @return mixed <code>true</code> if all validations pass; array of <code>ValidationFailed</code> objects otherwise.
*/
protected function doValidate($columns = null)
{
if (!$this->alreadyInValidation) {
$this->alreadyInValidation = true;
$retval = null;
$failureMap = array();
if (($retval = RespuestasSmsPeer::doValidate($this, $columns)) !== true) {
$failureMap = array_merge($failureMap, $retval);
}
$this->alreadyInValidation = false;
}
return (!empty($failureMap) ? $failureMap : true);
}
/**
* Retrieves a field from the object by name passed in as a string.
*
* @param string $name name
* @param string $type The type of fieldname the $name is of:
* one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME
* BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM.
* Defaults to BasePeer::TYPE_PHPNAME
* @return mixed Value of field.
*/
public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
{
$pos = RespuestasSmsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
$field = $this->getByPosition($pos);
return $field;
}
/**
* Retrieves a field from the object by Position as specified in the xml schema.
* Zero-based.
*
* @param int $pos position in xml schema
* @return mixed Value of field at $pos
*/
public function getByPosition($pos)
{
switch ($pos) {
case 0:
return $this->getResId();
break;
case 1:
return $this->getResProveedorSms();
break;
case 2:
return $this->getResEmisor();
break;
case 3:
return $this->getResMensaje();
break;
case 4:
return $this->getResHttpCodeRespuestaPeticion();
break;
case 5:
return $this->getCreatedAt();
break;
case 6:
return $this->getUpdatedAt();
break;
default:
return null;
break;
} // switch()
}
/**
* Exports the object as an array.
*
* You can specify the key type of the array by passing one of the class
* type constants.
*
* @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME,
* BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM.
* Defaults to BasePeer::TYPE_PHPNAME.
* @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true.
* @param array $alreadyDumpedObjects List of objects to skip to avoid recursion
*
* @return array an associative array containing the field names (as keys) and field values
*/
public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array())
{
if (isset($alreadyDumpedObjects['RespuestasSms'][$this->getPrimaryKey()])) {
return '*RECURSION*';
}
$alreadyDumpedObjects['RespuestasSms'][$this->getPrimaryKey()] = true;
$keys = RespuestasSmsPeer::getFieldNames($keyType);
$result = array(
$keys[0] => $this->getResId(),
$keys[1] => $this->getResProveedorSms(),
$keys[2] => $this->getResEmisor(),
$keys[3] => $this->getResMensaje(),
$keys[4] => $this->getResHttpCodeRespuestaPeticion(),
$keys[5] => $this->getCreatedAt(),
$keys[6] => $this->getUpdatedAt(),
);
$virtualColumns = $this->virtualColumns;
foreach ($virtualColumns as $key => $virtualColumn) {
$result[$key] = $virtualColumn;
}
return $result;
}
/**
* Sets a field from the object by name passed in as a string.
*
* @param string $name peer name
* @param mixed $value field value
* @param string $type The type of fieldname the $name is of:
* one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME
* BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM.
* Defaults to BasePeer::TYPE_PHPNAME
* @return void
*/
public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
{
$pos = RespuestasSmsPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
$this->setByPosition($pos, $value);
}
/**
* Sets a field from the object by Position as specified in the xml schema.
* Zero-based.
*
* @param int $pos position in xml schema
* @param mixed $value field value
* @return void
*/
public function setByPosition($pos, $value)
{
switch ($pos) {
case 0:
$this->setResId($value);
break;
case 1:
$this->setResProveedorSms($value);
break;
case 2:
$this->setResEmisor($value);
break;
case 3:
$this->setResMensaje($value);
break;
case 4:
$this->setResHttpCodeRespuestaPeticion($value);
break;
case 5:
$this->setCreatedAt($value);
break;
case 6:
$this->setUpdatedAt($value);
break;
} // switch()
}
/**
* Populates the object using an array.
*
* This is particularly useful when populating an object from one of the
* request arrays (e.g. $_POST). This method goes through the column
* names, checking to see whether a matching key exists in populated
* array. If so the setByName() method is called for that column.
*
* You can specify the key type of the array by additionally passing one
* of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME,
* BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM.
* The default key type is the column's BasePeer::TYPE_PHPNAME
*
* @param array $arr An array to populate the object from.
* @param string $keyType The type of keys the array uses.
* @return void
*/
public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
{
$keys = RespuestasSmsPeer::getFieldNames($keyType);
if (array_key_exists($keys[0], $arr)) $this->setResId($arr[$keys[0]]);
if (array_key_exists($keys[1], $arr)) $this->setResProveedorSms($arr[$keys[1]]);
if (array_key_exists($keys[2], $arr)) $this->setResEmisor($arr[$keys[2]]);
if (array_key_exists($keys[3], $arr)) $this->setResMensaje($arr[$keys[3]]);
if (array_key_exists($keys[4], $arr)) $this->setResHttpCodeRespuestaPeticion($arr[$keys[4]]);
if (array_key_exists($keys[5], $arr)) $this->setCreatedAt($arr[$keys[5]]);
if (array_key_exists($keys[6], $arr)) $this->setUpdatedAt($arr[$keys[6]]);
}
/**
* Build a Criteria object containing the values of all modified columns in this object.
*
* @return Criteria The Criteria object containing all modified values.
*/
public function buildCriteria()
{
$criteria = new Criteria(RespuestasSmsPeer::DATABASE_NAME);
if ($this->isColumnModified(RespuestasSmsPeer::RES_ID)) $criteria->add(RespuestasSmsPeer::RES_ID, $this->res_id);
if ($this->isColumnModified(RespuestasSmsPeer::RES_PROVEEDOR_SMS)) $criteria->add(RespuestasSmsPeer::RES_PROVEEDOR_SMS, $this->res_proveedor_sms);
if ($this->isColumnModified(RespuestasSmsPeer::RES_EMISOR)) $criteria->add(RespuestasSmsPeer::RES_EMISOR, $this->res_emisor);
if ($this->isColumnModified(RespuestasSmsPeer::RES_MENSAJE)) $criteria->add(RespuestasSmsPeer::RES_MENSAJE, $this->res_mensaje);
if ($this->isColumnModified(RespuestasSmsPeer::RES_HTTP_CODE_RESPUESTA_PETICION)) $criteria->add(RespuestasSmsPeer::RES_HTTP_CODE_RESPUESTA_PETICION, $this->res_http_code_respuesta_peticion);
if ($this->isColumnModified(RespuestasSmsPeer::CREATED_AT)) $criteria->add(RespuestasSmsPeer::CREATED_AT, $this->created_at);
if ($this->isColumnModified(RespuestasSmsPeer::UPDATED_AT)) $criteria->add(RespuestasSmsPeer::UPDATED_AT, $this->updated_at);
return $criteria;
}
/**
* Builds a Criteria object containing the primary key for this object.
*
* Unlike buildCriteria() this method includes the primary key values regardless
* of whether or not they have been modified.
*
* @return Criteria The Criteria object containing value(s) for primary key(s).
*/
public function buildPkeyCriteria()
{
$criteria = new Criteria(RespuestasSmsPeer::DATABASE_NAME);
$criteria->add(RespuestasSmsPeer::RES_ID, $this->res_id);
return $criteria;
}
/**
* Returns the primary key for this object (row).
* @return int
*/
public function getPrimaryKey()
{
return $this->getResId();
}
/**
* Generic method to set the primary key (res_id column).
*
* @param int $key Primary key.
* @return void
*/
public function setPrimaryKey($key)
{
$this->setResId($key);
}
/**
* Returns true if the primary key for this object is null.
* @return boolean
*/
public function isPrimaryKeyNull()
{
return null === $this->getResId();
}
/**
* Sets contents of passed object to values from current object.
*
* If desired, this method can also make copies of all associated (fkey referrers)
* objects.
*
* @param object $copyObj An object of RespuestasSms (or compatible) type.
* @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
* @param boolean $makeNew Whether to reset autoincrement PKs and make the object new.
* @throws PropelException
*/
public function copyInto($copyObj, $deepCopy = false, $makeNew = true)
{
$copyObj->setResProveedorSms($this->getResProveedorSms());
$copyObj->setResEmisor($this->getResEmisor());
$copyObj->setResMensaje($this->getResMensaje());
$copyObj->setResHttpCodeRespuestaPeticion($this->getResHttpCodeRespuestaPeticion());
$copyObj->setCreatedAt($this->getCreatedAt());
$copyObj->setUpdatedAt($this->getUpdatedAt());
if ($makeNew) {
$copyObj->setNew(true);
$copyObj->setResId(NULL); // this is a auto-increment column, so set to default value
}
}
/**
* Makes a copy of this object that will be inserted as a new row in table when saved.
* It creates a new object filling in the simple attributes, but skipping any primary
* keys that are defined for the table.
*
* If desired, this method can also make copies of all associated (fkey referrers)
* objects.
*
* @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
* @return RespuestasSms Clone of current object.
* @throws PropelException
*/
public function copy($deepCopy = false)
{
// we use get_class(), because this might be a subclass
$clazz = get_class($this);
$copyObj = new $clazz();
$this->copyInto($copyObj, $deepCopy);
return $copyObj;
}
/**
* Returns a peer instance associated with this om.
*
* Since Peer classes are not to have any instance attributes, this method returns the
* same instance for all member of this class. The method could therefore
* be static, but this would prevent one from overriding the behavior.
*
* @return RespuestasSmsPeer
*/
public function getPeer()
{
if (self::$peer === null) {
self::$peer = new RespuestasSmsPeer();
}
return self::$peer;
}
/**
* Clears the current object and sets all attributes to their default values
*/
public function clear()
{
$this->res_id = null;
$this->res_proveedor_sms = null;
$this->res_emisor = null;
$this->res_mensaje = null;
$this->res_http_code_respuesta_peticion = null;
$this->created_at = null;
$this->updated_at = null;
$this->alreadyInSave = false;
$this->alreadyInValidation = false;
$this->alreadyInClearAllReferencesDeep = false;
$this->clearAllReferences();
$this->applyDefaultValues();
$this->resetModified();
$this->setNew(true);
$this->setDeleted(false);
}
/**
* Resets all references to other model objects or collections of model objects.
*
* This method is a user-space workaround for PHP's inability to garbage collect
* objects with circular references (even in PHP 5.3). This is currently necessary
* when using Propel in certain daemon or large-volume/high-memory operations.
*
* @param boolean $deep Whether to also clear the references on all referrer objects.
*/
public function clearAllReferences($deep = false)
{
if ($deep && !$this->alreadyInClearAllReferencesDeep) {
$this->alreadyInClearAllReferencesDeep = true;
$this->alreadyInClearAllReferencesDeep = false;
} // if ($deep)
}
/**
* return the string representation of this object
*
* @return string
*/
public function __toString()
{
return (string) $this->exportTo(RespuestasSmsPeer::DEFAULT_STRING_FORMAT);
}
/**
* return true is the object is in saving state
*
* @return boolean
*/
public function isAlreadyInSave()
{
return $this->alreadyInSave;
}
}
<?php
namespace AppBundle\Model\om;
use \BasePeer;
use \Criteria;
use \PDO;
use \PDOStatement;
use \Propel;
use \PropelException;
use \PropelPDO;
use AppBundle\Model\RespuestasSms;
use AppBundle\Model\RespuestasSmsPeer;
use AppBundle\Model\map\RespuestasSmsTableMap;
abstract class BaseRespuestasSmsPeer
{
/** the default database name for this class */
const DATABASE_NAME = 'default';
/** the table name for this class */
const TABLE_NAME = 'respuestas_sms';
/** the related Propel class for this table */
const OM_CLASS = 'AppBundle\\Model\\RespuestasSms';
/** the related TableMap class for this table */
const TM_CLASS = 'AppBundle\\Model\\map\\RespuestasSmsTableMap';
/** The total number of columns. */
const NUM_COLUMNS = 7;
/** The number of lazy-loaded columns. */
const NUM_LAZY_LOAD_COLUMNS = 0;
/** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */
const NUM_HYDRATE_COLUMNS = 7;
/** the column name for the res_id field */
const RES_ID = 'respuestas_sms.res_id';
/** the column name for the res_proveedor_sms field */
const RES_PROVEEDOR_SMS = 'respuestas_sms.res_proveedor_sms';
/** the column name for the res_emisor field */
const RES_EMISOR = 'respuestas_sms.res_emisor';
/** the column name for the res_mensaje field */
const RES_MENSAJE = 'respuestas_sms.res_mensaje';
/** the column name for the res_http_code_respuesta_peticion field */
const RES_HTTP_CODE_RESPUESTA_PETICION = 'respuestas_sms.res_http_code_respuesta_peticion';
/** the column name for the created_at field */
const CREATED_AT = 'respuestas_sms.created_at';
/** the column name for the updated_at field */
const UPDATED_AT = 'respuestas_sms.updated_at';
/** The default string format for model objects of the related table **/
const DEFAULT_STRING_FORMAT = 'YAML';
/**
* An identity map to hold any loaded instances of RespuestasSms objects.
* This must be public so that other peer classes can access this when hydrating from JOIN
* queries.
* @var array RespuestasSms[]
*/
public static $instances = array();
/**
* holds an array of fieldnames
*
* first dimension keys are the type constants
* e.g. RespuestasSmsPeer::$fieldNames[RespuestasSmsPeer::TYPE_PHPNAME][0] = 'Id'
*/
protected static $fieldNames = array (
BasePeer::TYPE_PHPNAME => array ('ResId', 'ResProveedorSms', 'ResEmisor', 'ResMensaje', 'ResHttpCodeRespuestaPeticion', 'CreatedAt', 'UpdatedAt', ),
BasePeer::TYPE_STUDLYPHPNAME => array ('resId', 'resProveedorSms', 'resEmisor', 'resMensaje', 'resHttpCodeRespuestaPeticion', 'createdAt', 'updatedAt', ),
BasePeer::TYPE_COLNAME => array (RespuestasSmsPeer::RES_ID, RespuestasSmsPeer::RES_PROVEEDOR_SMS, RespuestasSmsPeer::RES_EMISOR, RespuestasSmsPeer::RES_MENSAJE, RespuestasSmsPeer::RES_HTTP_CODE_RESPUESTA_PETICION, RespuestasSmsPeer::CREATED_AT, RespuestasSmsPeer::UPDATED_AT, ),
BasePeer::TYPE_RAW_COLNAME => array ('RES_ID', 'RES_PROVEEDOR_SMS', 'RES_EMISOR', 'RES_MENSAJE', 'RES_HTTP_CODE_RESPUESTA_PETICION', 'CREATED_AT', 'UPDATED_AT', ),
BasePeer::TYPE_FIELDNAME => array ('res_id', 'res_proveedor_sms', 'res_emisor', 'res_mensaje', 'res_http_code_respuesta_peticion', 'created_at', 'updated_at', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, )
);
/**
* holds an array of keys for quick access to the fieldnames array
*
* first dimension keys are the type constants
* e.g. RespuestasSmsPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
*/
protected static $fieldKeys = array (
BasePeer::TYPE_PHPNAME => array ('ResId' => 0, 'ResProveedorSms' => 1, 'ResEmisor' => 2, 'ResMensaje' => 3, 'ResHttpCodeRespuestaPeticion' => 4, 'CreatedAt' => 5, 'UpdatedAt' => 6, ),
BasePeer::TYPE_STUDLYPHPNAME => array ('resId' => 0, 'resProveedorSms' => 1, 'resEmisor' => 2, 'resMensaje' => 3, 'resHttpCodeRespuestaPeticion' => 4, 'createdAt' => 5, 'updatedAt' => 6, ),
BasePeer::TYPE_COLNAME => array (RespuestasSmsPeer::RES_ID => 0, RespuestasSmsPeer::RES_PROVEEDOR_SMS => 1, RespuestasSmsPeer::RES_EMISOR => 2, RespuestasSmsPeer::RES_MENSAJE => 3, RespuestasSmsPeer::RES_HTTP_CODE_RESPUESTA_PETICION => 4, RespuestasSmsPeer::CREATED_AT => 5, RespuestasSmsPeer::UPDATED_AT => 6, ),
BasePeer::TYPE_RAW_COLNAME => array ('RES_ID' => 0, 'RES_PROVEEDOR_SMS' => 1, 'RES_EMISOR' => 2, 'RES_MENSAJE' => 3, 'RES_HTTP_CODE_RESPUESTA_PETICION' => 4, 'CREATED_AT' => 5, 'UPDATED_AT' => 6, ),
BasePeer::TYPE_FIELDNAME => array ('res_id' => 0, 'res_proveedor_sms' => 1, 'res_emisor' => 2, 'res_mensaje' => 3, 'res_http_code_respuesta_peticion' => 4, 'created_at' => 5, 'updated_at' => 6, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, )
);
/**
* Translates a fieldname to another type
*
* @param string $name field name
* @param string $fromType One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME
* BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM
* @param string $toType One of the class type constants
* @return string translated name of the field.
* @throws PropelException - if the specified name could not be found in the fieldname mappings.
*/
public static function translateFieldName($name, $fromType, $toType)
{
$toNames = RespuestasSmsPeer::getFieldNames($toType);
$key = isset(RespuestasSmsPeer::$fieldKeys[$fromType][$name]) ? RespuestasSmsPeer::$fieldKeys[$fromType][$name] : null;
if ($key === null) {
throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(RespuestasSmsPeer::$fieldKeys[$fromType], true));
}
return $toNames[$key];
}
/**
* Returns an array of field names.
*
* @param string $type The type of fieldnames to return:
* One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME
* BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM
* @return array A list of field names
* @throws PropelException - if the type is not valid.
*/
public static function getFieldNames($type = BasePeer::TYPE_PHPNAME)
{
if (!array_key_exists($type, RespuestasSmsPeer::$fieldNames)) {
throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.');
}
return RespuestasSmsPeer::$fieldNames[$type];
}
/**
* Convenience method which changes table.column to alias.column.
*
* Using this method you can maintain SQL abstraction while using column aliases.
* <code>
* $c->addAlias("alias1", TablePeer::TABLE_NAME);
* $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
* </code>
* @param string $alias The alias for the current table.
* @param string $column The column name for current table. (i.e. RespuestasSmsPeer::COLUMN_NAME).
* @return string
*/
public static function alias($alias, $column)
{
return str_replace(RespuestasSmsPeer::TABLE_NAME.'.', $alias.'.', $column);
}
/**
* Add all the columns needed to create a new object.
*
* Note: any columns that were marked with lazyLoad="true" in the
* XML schema will not be added to the select list and only loaded
* on demand.
*
* @param Criteria $criteria object containing the columns to add.
* @param string $alias optional table alias
* @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException.
*/
public static function addSelectColumns(Criteria $criteria, $alias = null)
{
if (null === $alias) {
$criteria->addSelectColumn(RespuestasSmsPeer::RES_ID);
$criteria->addSelectColumn(RespuestasSmsPeer::RES_PROVEEDOR_SMS);
$criteria->addSelectColumn(RespuestasSmsPeer::RES_EMISOR);
$criteria->addSelectColumn(RespuestasSmsPeer::RES_MENSAJE);
$criteria->addSelectColumn(RespuestasSmsPeer::RES_HTTP_CODE_RESPUESTA_PETICION);
$criteria->addSelectColumn(RespuestasSmsPeer::CREATED_AT);
$criteria->addSelectColumn(RespuestasSmsPeer::UPDATED_AT);
} else {
$criteria->addSelectColumn($alias . '.res_id');
$criteria->addSelectColumn($alias . '.res_proveedor_sms');
$criteria->addSelectColumn($alias . '.res_emisor');
$criteria->addSelectColumn($alias . '.res_mensaje');
$criteria->addSelectColumn($alias . '.res_http_code_respuesta_peticion');
$criteria->addSelectColumn($alias . '.created_at');
$criteria->addSelectColumn($alias . '.updated_at');
}
}
/**
* Returns the number of rows matching criteria.
*
* @param Criteria $criteria
* @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead.
* @param PropelPDO $con
* @return int Number of matching rows.
*/
public static function doCount(Criteria $criteria, $distinct = false, PropelPDO $con = null)
{
// we may modify criteria, so copy it first
$criteria = clone $criteria;
// We need to set the primary table name, since in the case that there are no WHERE columns
// it will be impossible for the BasePeer::createSelectSql() method to determine which
// tables go into the FROM clause.
$criteria->setPrimaryTableName(RespuestasSmsPeer::TABLE_NAME);
if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {
$criteria->setDistinct();
}
if (!$criteria->hasSelectClause()) {
RespuestasSmsPeer::addSelectColumns($criteria);
}
$criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count
$criteria->setDbName(RespuestasSmsPeer::DATABASE_NAME); // Set the correct dbName
if ($con === null) {
$con = Propel::getConnection(RespuestasSmsPeer::DATABASE_NAME, Propel::CONNECTION_READ);
}
// BasePeer returns a PDOStatement
$stmt = BasePeer::doCount($criteria, $con);
if ($row = $stmt->fetch(PDO::FETCH_NUM)) {
$count = (int) $row[0];
} else {
$count = 0; // no rows returned; we infer that means 0 matches.
}
$stmt->closeCursor();
return $count;
}
/**
* Selects one object from the DB.
*
* @param Criteria $criteria object used to create the SELECT statement.
* @param PropelPDO $con
* @return RespuestasSms
* @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException.
*/
public static function doSelectOne(Criteria $criteria, PropelPDO $con = null)
{
$critcopy = clone $criteria;
$critcopy->setLimit(1);
$objects = RespuestasSmsPeer::doSelect($critcopy, $con);
if ($objects) {
return $objects[0];
}
return null;
}
/**
* Selects several row from the DB.
*
* @param Criteria $criteria The Criteria object used to build the SELECT statement.
* @param PropelPDO $con
* @return array Array of selected Objects
* @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException.
*/
public static function doSelect(Criteria $criteria, PropelPDO $con = null)
{
return RespuestasSmsPeer::populateObjects(RespuestasSmsPeer::doSelectStmt($criteria, $con));
}
/**
* Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement.
*
* Use this method directly if you want to work with an executed statement directly (for example
* to perform your own object hydration).
*
* @param Criteria $criteria The Criteria object used to build the SELECT statement.
* @param PropelPDO $con The connection to use
* @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException.
* @return PDOStatement The executed PDOStatement object.
* @see BasePeer::doSelect()
*/
public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null)
{
if ($con === null) {
$con = Propel::getConnection(RespuestasSmsPeer::DATABASE_NAME, Propel::CONNECTION_READ);
}
if (!$criteria->hasSelectClause()) {
$criteria = clone $criteria;
RespuestasSmsPeer::addSelectColumns($criteria);
}
// Set the correct dbName
$criteria->setDbName(RespuestasSmsPeer::DATABASE_NAME);
// BasePeer returns a PDOStatement
return BasePeer::doSelect($criteria, $con);
}
/**
* Adds an object to the instance pool.
*
* Propel keeps cached copies of objects in an instance pool when they are retrieved
* from the database. In some cases -- especially when you override doSelect*()
* methods in your stub classes -- you may need to explicitly add objects
* to the cache in order to ensure that the same objects are always returned by doSelect*()
* and retrieveByPK*() calls.
*
* @param RespuestasSms $obj A RespuestasSms object.
* @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally).
*/
public static function addInstanceToPool($obj, $key = null)
{
if (Propel::isInstancePoolingEnabled()) {
if ($key === null) {
$key = (string) $obj->getResId();
} // if key === null
RespuestasSmsPeer::$instances[$key] = $obj;
}
}
/**
* Removes an object from the instance pool.
*
* Propel keeps cached copies of objects in an instance pool when they are retrieved
* from the database. In some cases -- especially when you override doDelete
* methods in your stub classes -- you may need to explicitly remove objects
* from the cache in order to prevent returning objects that no longer exist.
*
* @param mixed $value A RespuestasSms object or a primary key value.
*
* @return void
* @throws PropelException - if the value is invalid.
*/
public static function removeInstanceFromPool($value)
{
if (Propel::isInstancePoolingEnabled() && $value !== null) {
if (is_object($value) && $value instanceof RespuestasSms) {
$key = (string) $value->getResId();
} elseif (is_scalar($value)) {
// assume we've been passed a primary key
$key = (string) $value;
} else {
$e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or RespuestasSms object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));
throw $e;
}
unset(RespuestasSmsPeer::$instances[$key]);
}
} // removeInstanceFromPool()
/**
* Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table.
*
* For tables with a single-column primary key, that simple pkey value will be returned. For tables with
* a multi-column primary key, a serialize()d version of the primary key will be returned.
*
* @param string $key The key (@see getPrimaryKeyHash()) for this instance.
* @return RespuestasSms Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled.
* @see getPrimaryKeyHash()
*/
public static function getInstanceFromPool($key)
{
if (Propel::isInstancePoolingEnabled()) {
if (isset(RespuestasSmsPeer::$instances[$key])) {
return RespuestasSmsPeer::$instances[$key];
}
}
return null; // just to be explicit
}
/**
* Clear the instance pool.
*
* @return void
*/
public static function clearInstancePool($and_clear_all_references = false)
{
if ($and_clear_all_references) {
foreach (RespuestasSmsPeer::$instances as $instance) {
$instance->clearAllReferences(true);
}
}
RespuestasSmsPeer::$instances = array();
}
/**
* Method to invalidate the instance pool of all tables related to respuestas_sms
* by a foreign key with ON DELETE CASCADE
*/
public static function clearRelatedInstancePool()
{
}
/**
* Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table.
*
* For tables with a single-column primary key, that simple pkey value will be returned. For tables with
* a multi-column primary key, a serialize()d version of the primary key will be returned.
*
* @param array $row PropelPDO resultset row.
* @param int $startcol The 0-based offset for reading from the resultset row.
* @return string A string version of PK or null if the components of primary key in result array are all null.
*/
public static function getPrimaryKeyHashFromRow($row, $startcol = 0)
{
// If the PK cannot be derived from the row, return null.
if ($row[$startcol] === null) {
return null;
}
return (string) $row[$startcol];
}
/**
* Retrieves the primary key from the DB resultset row
* For tables with a single-column primary key, that simple pkey value will be returned. For tables with
* a multi-column primary key, an array of the primary key columns will be returned.
*
* @param array $row PropelPDO resultset row.
* @param int $startcol The 0-based offset for reading from the resultset row.
* @return mixed The primary key of the row
*/
public static function getPrimaryKeyFromRow($row, $startcol = 0)
{
return (int) $row[$startcol];
}
/**
* The returned array will contain objects of the default type or
* objects that inherit from the default.
*
* @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException.
*/
public static function populateObjects(PDOStatement $stmt)
{
$results = array();
// set the class once to avoid overhead in the loop
$cls = RespuestasSmsPeer::getOMClass();
// populate the object(s)
while ($row = $stmt->fetch(PDO::FETCH_NUM)) {
$key = RespuestasSmsPeer::getPrimaryKeyHashFromRow($row, 0);
if (null !== ($obj = RespuestasSmsPeer::getInstanceFromPool($key))) {
// We no longer rehydrate the object, since this can cause data loss.
// See http://www.propelorm.org/ticket/509
// $obj->hydrate($row, 0, true); // rehydrate
$results[] = $obj;
} else {
$obj = new $cls();
$obj->hydrate($row);
$results[] = $obj;
RespuestasSmsPeer::addInstanceToPool($obj, $key);
} // if key exists
}
$stmt->closeCursor();
return $results;
}
/**
* Populates an object of the default type or an object that inherit from the default.
*
* @param array $row PropelPDO resultset row.
* @param int $startcol The 0-based offset for reading from the resultset row.
* @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException.
* @return array (RespuestasSms object, last column rank)
*/
public static function populateObject($row, $startcol = 0)
{
$key = RespuestasSmsPeer::getPrimaryKeyHashFromRow($row, $startcol);
if (null !== ($obj = RespuestasSmsPeer::getInstanceFromPool($key))) {
// We no longer rehydrate the object, since this can cause data loss.
// See http://www.propelorm.org/ticket/509
// $obj->hydrate($row, $startcol, true); // rehydrate
$col = $startcol + RespuestasSmsPeer::NUM_HYDRATE_COLUMNS;
} else {
$cls = RespuestasSmsPeer::OM_CLASS;
$obj = new $cls();
$col = $obj->hydrate($row, $startcol);
RespuestasSmsPeer::addInstanceToPool($obj, $key);
}
return array($obj, $col);
}
/**
* Returns the TableMap related to this peer.
* This method is not needed for general use but a specific application could have a need.
* @return TableMap
* @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException.
*/
public static function getTableMap()
{
return Propel::getDatabaseMap(RespuestasSmsPeer::DATABASE_NAME)->getTable(RespuestasSmsPeer::TABLE_NAME);
}
/**
* Add a TableMap instance to the database for this peer class.
*/
public static function buildTableMap()
{
$dbMap = Propel::getDatabaseMap(BaseRespuestasSmsPeer::DATABASE_NAME);
if (!$dbMap->hasTable(BaseRespuestasSmsPeer::TABLE_NAME)) {
$dbMap->addTableObject(new \AppBundle\Model\map\RespuestasSmsTableMap());
}
}
/**
* The class that the Peer will make instances of.
*
*
* @return string ClassName
*/
public static function getOMClass($row = 0, $colnum = 0)
{
return RespuestasSmsPeer::OM_CLASS;
}
/**
* Performs an INSERT on the database, given a RespuestasSms or Criteria object.
*
* @param mixed $values Criteria or RespuestasSms object containing data that is used to create the INSERT statement.
* @param PropelPDO $con the PropelPDO connection to use
* @return mixed The new primary key.
* @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException.
*/
public static function doInsert($values, PropelPDO $con = null)
{
if ($con === null) {
$con = Propel::getConnection(RespuestasSmsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);
}
if ($values instanceof Criteria) {
$criteria = clone $values; // rename for clarity
} else {
$criteria = $values->buildCriteria(); // build Criteria from RespuestasSms object
}
// Set the correct dbName
$criteria->setDbName(RespuestasSmsPeer::DATABASE_NAME);
try {
// use transaction because $criteria could contain info
// for more than one table (I guess, conceivably)
$con->beginTransaction();
$pk = BasePeer::doInsert($criteria, $con);
$con->commit();
} catch (Exception $e) {
$con->rollBack();
throw $e;
}
return $pk;
}
/**
* Performs an UPDATE on the database, given a RespuestasSms or Criteria object.
*
* @param mixed $values Criteria or RespuestasSms object containing data that is used to create the UPDATE statement.
* @param PropelPDO $con The connection to use (specify PropelPDO connection object to exert more control over transactions).
* @return int The number of affected rows (if supported by underlying database driver).
* @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException.
*/
public static function doUpdate($values, PropelPDO $con = null)
{
if ($con === null) {
$con = Propel::getConnection(RespuestasSmsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);
}
$selectCriteria = new Criteria(RespuestasSmsPeer::DATABASE_NAME);
if ($values instanceof Criteria) {
$criteria = clone $values; // rename for clarity
$comparison = $criteria->getComparison(RespuestasSmsPeer::RES_ID);
$value = $criteria->remove(RespuestasSmsPeer::RES_ID);
if ($value) {
$selectCriteria->add(RespuestasSmsPeer::RES_ID, $value, $comparison);
} else {
$selectCriteria->setPrimaryTableName(RespuestasSmsPeer::TABLE_NAME);
}
} else { // $values is RespuestasSms object
$criteria = $values->buildCriteria(); // gets full criteria
$selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
}
// set the correct dbName
$criteria->setDbName(RespuestasSmsPeer::DATABASE_NAME);
return BasePeer::doUpdate($selectCriteria, $criteria, $con);
}
/**
* Deletes all rows from the respuestas_sms table.
*
* @param PropelPDO $con the connection to use
* @return int The number of affected rows (if supported by underlying database driver).
* @throws PropelException
*/
public static function doDeleteAll(PropelPDO $con = null)
{
if ($con === null) {
$con = Propel::getConnection(RespuestasSmsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);
}
$affectedRows = 0; // initialize var to track total num of affected rows
try {
// use transaction because $criteria could contain info
// for more than one table or we could emulating ON DELETE CASCADE, etc.
$con->beginTransaction();
$affectedRows += BasePeer::doDeleteAll(RespuestasSmsPeer::TABLE_NAME, $con, RespuestasSmsPeer::DATABASE_NAME);
// Because this db requires some delete cascade/set null emulation, we have to
// clear the cached instance *after* the emulation has happened (since
// instances get re-added by the select statement contained therein).
RespuestasSmsPeer::clearInstancePool();
RespuestasSmsPeer::clearRelatedInstancePool();
$con->commit();
return $affectedRows;
} catch (Exception $e) {
$con->rollBack();
throw $e;
}
}
/**
* Performs a DELETE on the database, given a RespuestasSms or Criteria object OR a primary key value.
*
* @param mixed $values Criteria or RespuestasSms object or primary key or array of primary keys
* which is used to create the DELETE statement
* @param PropelPDO $con the connection to use
* @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows
* if supported by native driver or if emulated using Propel.
* @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException.
*/
public static function doDelete($values, PropelPDO $con = null)
{
if ($con === null) {
$con = Propel::getConnection(RespuestasSmsPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);
}
if ($values instanceof Criteria) {
// invalidate the cache for all objects of this type, since we have no
// way of knowing (without running a query) what objects should be invalidated
// from the cache based on this Criteria.
RespuestasSmsPeer::clearInstancePool();
// rename for clarity
$criteria = clone $values;
} elseif ($values instanceof RespuestasSms) { // it's a model object
// invalidate the cache for this single object
RespuestasSmsPeer::removeInstanceFromPool($values);
// create criteria based on pk values
$criteria = $values->buildPkeyCriteria();
} else { // it's a primary key, or an array of pks
$criteria = new Criteria(RespuestasSmsPeer::DATABASE_NAME);
$criteria->add(RespuestasSmsPeer::RES_ID, (array) $values, Criteria::IN);
// invalidate the cache for this object(s)
foreach ((array) $values as $singleval) {
RespuestasSmsPeer::removeInstanceFromPool($singleval);
}
}
// Set the correct dbName
$criteria->setDbName(RespuestasSmsPeer::DATABASE_NAME);
$affectedRows = 0; // initialize var to track total num of affected rows
try {
// use transaction because $criteria could contain info
// for more than one table or we could emulating ON DELETE CASCADE, etc.
$con->beginTransaction();
$affectedRows += BasePeer::doDelete($criteria, $con);
RespuestasSmsPeer::clearRelatedInstancePool();
$con->commit();
return $affectedRows;
} catch (Exception $e) {
$con->rollBack();
throw $e;
}
}
/**
* Validates all modified columns of given RespuestasSms object.
* If parameter $columns is either a single column name or an array of column names
* than only those columns are validated.
*
* NOTICE: This does not apply to primary or foreign keys for now.
*
* @param RespuestasSms $obj The object to validate.
* @param mixed $cols Column name or array of column names.
*
* @return mixed TRUE if all columns are valid or the error message of the first invalid column.
*/
public static function doValidate($obj, $cols = null)
{
$columns = array();
if ($cols) {
$dbMap = Propel::getDatabaseMap(RespuestasSmsPeer::DATABASE_NAME);
$tableMap = $dbMap->getTable(RespuestasSmsPeer::TABLE_NAME);
if (! is_array($cols)) {
$cols = array($cols);
}
foreach ($cols as $colName) {
if ($tableMap->hasColumn($colName)) {
$get = 'get' . $tableMap->getColumn($colName)->getPhpName();
$columns[$colName] = $obj->$get();
}
}
} else {
}
return BasePeer::doValidate(RespuestasSmsPeer::DATABASE_NAME, RespuestasSmsPeer::TABLE_NAME, $columns);
}
/**
* Retrieve a single object by pkey.
*
* @param int $pk the primary key.
* @param PropelPDO $con the connection to use
* @return RespuestasSms
*/
public static function retrieveByPK($pk, PropelPDO $con = null)
{
if (null !== ($obj = RespuestasSmsPeer::getInstanceFromPool((string) $pk))) {
return $obj;
}
if ($con === null) {
$con = Propel::getConnection(RespuestasSmsPeer::DATABASE_NAME, Propel::CONNECTION_READ);
}
$criteria = new Criteria(RespuestasSmsPeer::DATABASE_NAME);
$criteria->add(RespuestasSmsPeer::RES_ID, $pk);
$v = RespuestasSmsPeer::doSelect($criteria, $con);
return !empty($v) > 0 ? $v[0] : null;
}
/**
* Retrieve multiple objects by pkey.
*
* @param array $pks List of primary keys
* @param PropelPDO $con the connection to use
* @return RespuestasSms[]
* @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException.
*/
public static function retrieveByPKs($pks, PropelPDO $con = null)
{
if ($con === null) {
$con = Propel::getConnection(RespuestasSmsPeer::DATABASE_NAME, Propel::CONNECTION_READ);
}
$objs = null;
if (empty($pks)) {
$objs = array();
} else {
$criteria = new Criteria(RespuestasSmsPeer::DATABASE_NAME);
$criteria->add(RespuestasSmsPeer::RES_ID, $pks, Criteria::IN);
$objs = RespuestasSmsPeer::doSelect($criteria, $con);
}
return $objs;
}
} // BaseRespuestasSmsPeer
// This is the static code needed to register the TableMap for this table with the main Propel class.
//
BaseRespuestasSmsPeer::buildTableMap();
<?php
namespace AppBundle\Model\om;
use \Criteria;
use \Exception;
use \ModelCriteria;
use \PDO;
use \Propel;
use \PropelException;
use \PropelObjectCollection;
use \PropelPDO;
use AppBundle\Model\RespuestasSms;
use AppBundle\Model\RespuestasSmsPeer;
use AppBundle\Model\RespuestasSmsQuery;
/**
* @method RespuestasSmsQuery orderByResId($order = Criteria::ASC) Order by the res_id column
* @method RespuestasSmsQuery orderByResProveedorSms($order = Criteria::ASC) Order by the res_proveedor_sms column
* @method RespuestasSmsQuery orderByResEmisor($order = Criteria::ASC) Order by the res_emisor column
* @method RespuestasSmsQuery orderByResMensaje($order = Criteria::ASC) Order by the res_mensaje column
* @method RespuestasSmsQuery orderByResHttpCodeRespuestaPeticion($order = Criteria::ASC) Order by the res_http_code_respuesta_peticion column
* @method RespuestasSmsQuery orderByCreatedAt($order = Criteria::ASC) Order by the created_at column
* @method RespuestasSmsQuery orderByUpdatedAt($order = Criteria::ASC) Order by the updated_at column
*
* @method RespuestasSmsQuery groupByResId() Group by the res_id column
* @method RespuestasSmsQuery groupByResProveedorSms() Group by the res_proveedor_sms column
* @method RespuestasSmsQuery groupByResEmisor() Group by the res_emisor column
* @method RespuestasSmsQuery groupByResMensaje() Group by the res_mensaje column
* @method RespuestasSmsQuery groupByResHttpCodeRespuestaPeticion() Group by the res_http_code_respuesta_peticion column
* @method RespuestasSmsQuery groupByCreatedAt() Group by the created_at column
* @method RespuestasSmsQuery groupByUpdatedAt() Group by the updated_at column
*
* @method RespuestasSmsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
* @method RespuestasSmsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
* @method RespuestasSmsQuery innerJoin($relation) Adds a INNER JOIN clause to the query
*
* @method RespuestasSms findOne(PropelPDO $con = null) Return the first RespuestasSms matching the query
* @method RespuestasSms findOneOrCreate(PropelPDO $con = null) Return the first RespuestasSms matching the query, or a new RespuestasSms object populated from the query conditions when no match is found
*
* @method RespuestasSms findOneByResProveedorSms(int $res_proveedor_sms) Return the first RespuestasSms filtered by the res_proveedor_sms column
* @method RespuestasSms findOneByResEmisor(int $res_emisor) Return the first RespuestasSms filtered by the res_emisor column
* @method RespuestasSms findOneByResMensaje(string $res_mensaje) Return the first RespuestasSms filtered by the res_mensaje column
* @method RespuestasSms findOneByResHttpCodeRespuestaPeticion(int $res_http_code_respuesta_peticion) Return the first RespuestasSms filtered by the res_http_code_respuesta_peticion column
* @method RespuestasSms findOneByCreatedAt(string $created_at) Return the first RespuestasSms filtered by the created_at column
* @method RespuestasSms findOneByUpdatedAt(string $updated_at) Return the first RespuestasSms filtered by the updated_at column
*
* @method array findByResId(int $res_id) Return RespuestasSms objects filtered by the res_id column
* @method array findByResProveedorSms(int $res_proveedor_sms) Return RespuestasSms objects filtered by the res_proveedor_sms column
* @method array findByResEmisor(int $res_emisor) Return RespuestasSms objects filtered by the res_emisor column
* @method array findByResMensaje(string $res_mensaje) Return RespuestasSms objects filtered by the res_mensaje column
* @method array findByResHttpCodeRespuestaPeticion(int $res_http_code_respuesta_peticion) Return RespuestasSms objects filtered by the res_http_code_respuesta_peticion column
* @method array findByCreatedAt(string $created_at) Return RespuestasSms objects filtered by the created_at column
* @method array findByUpdatedAt(string $updated_at) Return RespuestasSms objects filtered by the updated_at column
*/
abstract class BaseRespuestasSmsQuery extends ModelCriteria
{
/**
* Initializes internal state of BaseRespuestasSmsQuery object.
*
* @param string $dbName The dabase name
* @param string $modelName The phpName of a model, e.g. 'Book'
* @param string $modelAlias The alias for the model in this query, e.g. 'b'
*/
public function __construct($dbName = null, $modelName = null, $modelAlias = null)
{
if (null === $dbName) {
$dbName = 'default';
}
if (null === $modelName) {
$modelName = 'AppBundle\\Model\\RespuestasSms';
}
parent::__construct($dbName, $modelName, $modelAlias);
}
/**
* Returns a new RespuestasSmsQuery object.
*
* @param string $modelAlias The alias of a model in the query
* @param RespuestasSmsQuery|Criteria $criteria Optional Criteria to build the query from
*
* @return RespuestasSmsQuery
*/
public static function create($modelAlias = null, $criteria = null)
{
if ($criteria instanceof RespuestasSmsQuery) {
return $criteria;
}
$query = new RespuestasSmsQuery(null, null, $modelAlias);
if ($criteria instanceof Criteria) {
$query->mergeWith($criteria);
}
return $query;
}
/**
* Find object by primary key.
* Propel uses the instance pool to skip the database if the object exists.
* Go fast if the query is untouched.
*
* <code>
* $obj = $c->findPk(12, $con);
* </code>
*
* @param mixed $key Primary key to use for the query
* @param PropelPDO $con an optional connection object
*
* @return RespuestasSms|RespuestasSms[]|mixed the result, formatted by the current formatter
*/
public function findPk($key, $con = null)
{
if ($key === null) {
return null;
}
if ((null !== ($obj = RespuestasSmsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {
// the object is already in the instance pool
return $obj;
}
if ($con === null) {
$con = Propel::getConnection(RespuestasSmsPeer::DATABASE_NAME, Propel::CONNECTION_READ);
}
$this->basePreSelect($con);
if ($this->formatter || $this->modelAlias || $this->with || $this->select
|| $this->selectColumns || $this->asColumns || $this->selectModifiers
|| $this->map || $this->having || $this->joins) {
return $this->findPkComplex($key, $con);
} else {
return $this->findPkSimple($key, $con);
}
}
/**
* Alias of findPk to use instance pooling
*
* @param mixed $key Primary key to use for the query
* @param PropelPDO $con A connection object
*
* @return RespuestasSms A model object, or null if the key is not found
* @throws PropelException
*/
public function findOneByResId($key, $con = null)
{
return $this->findPk($key, $con);
}
/**
* Find object by primary key using raw SQL to go fast.
* Bypass doSelect() and the object formatter by using generated code.
*
* @param mixed $key Primary key to use for the query
* @param PropelPDO $con A connection object
*
* @return RespuestasSms A model object, or null if the key is not found
* @throws PropelException
*/
protected function findPkSimple($key, $con)
{
$sql = 'SELECT `res_id`, `res_proveedor_sms`, `res_emisor`, `res_mensaje`, `res_http_code_respuesta_peticion`, `created_at`, `updated_at` FROM `respuestas_sms` WHERE `res_id` = :p0';
try {
$stmt = $con->prepare($sql);
$stmt->bindValue(':p0', $key, PDO::PARAM_INT);
$stmt->execute();
} catch (Exception $e) {
Propel::log($e->getMessage(), Propel::LOG_ERR);
throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);
}
$obj = null;
if ($row = $stmt->fetch(PDO::FETCH_NUM)) {
$obj = new RespuestasSms();
$obj->hydrate($row);
RespuestasSmsPeer::addInstanceToPool($obj, (string) $key);
}
$stmt->closeCursor();
return $obj;
}
/**
* Find object by primary key.
*
* @param mixed $key Primary key to use for the query
* @param PropelPDO $con A connection object
*
* @return RespuestasSms|RespuestasSms[]|mixed the result, formatted by the current formatter
*/
protected function findPkComplex($key, $con)
{
// As the query uses a PK condition, no limit(1) is necessary.
$criteria = $this->isKeepQuery() ? clone $this : $this;
$stmt = $criteria
->filterByPrimaryKey($key)
->doSelect($con);
return $criteria->getFormatter()->init($criteria)->formatOne($stmt);
}
/**
* Find objects by primary key
* <code>
* $objs = $c->findPks(array(12, 56, 832), $con);
* </code>
* @param array $keys Primary keys to use for the query
* @param PropelPDO $con an optional connection object
*
* @return PropelObjectCollection|RespuestasSms[]|mixed the list of results, formatted by the current formatter
*/
public function findPks($keys, $con = null)
{
if ($con === null) {
$con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);
}
$this->basePreSelect($con);
$criteria = $this->isKeepQuery() ? clone $this : $this;
$stmt = $criteria
->filterByPrimaryKeys($keys)
->doSelect($con);
return $criteria->getFormatter()->init($criteria)->format($stmt);
}
/**
* Filter the query by primary key
*
* @param mixed $key Primary key to use for the query
*
* @return RespuestasSmsQuery The current query, for fluid interface
*/
public function filterByPrimaryKey($key)
{
return $this->addUsingAlias(RespuestasSmsPeer::RES_ID, $key, Criteria::EQUAL);
}
/**
* Filter the query by a list of primary keys
*
* @param array $keys The list of primary key to use for the query
*
* @return RespuestasSmsQuery The current query, for fluid interface
*/
public function filterByPrimaryKeys($keys)
{
return $this->addUsingAlias(RespuestasSmsPeer::RES_ID, $keys, Criteria::IN);
}
/**
* Filter the query on the res_id column
*
* Example usage:
* <code>
* $query->filterByResId(1234); // WHERE res_id = 1234
* $query->filterByResId(array(12, 34)); // WHERE res_id IN (12, 34)
* $query->filterByResId(array('min' => 12)); // WHERE res_id >= 12
* $query->filterByResId(array('max' => 12)); // WHERE res_id <= 12
* </code>
*
* @param mixed $resId The value to use as filter.
* Use scalar values for equality.
* Use array values for in_array() equivalent.
* Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return RespuestasSmsQuery The current query, for fluid interface
*/
public function filterByResId($resId = null, $comparison = null)
{
if (is_array($resId)) {
$useMinMax = false;
if (isset($resId['min'])) {
$this->addUsingAlias(RespuestasSmsPeer::RES_ID, $resId['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($resId['max'])) {
$this->addUsingAlias(RespuestasSmsPeer::RES_ID, $resId['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(RespuestasSmsPeer::RES_ID, $resId, $comparison);
}
/**
* Filter the query on the res_proveedor_sms column
*
* Example usage:
* <code>
* $query->filterByResProveedorSms(1234); // WHERE res_proveedor_sms = 1234
* $query->filterByResProveedorSms(array(12, 34)); // WHERE res_proveedor_sms IN (12, 34)
* $query->filterByResProveedorSms(array('min' => 12)); // WHERE res_proveedor_sms >= 12
* $query->filterByResProveedorSms(array('max' => 12)); // WHERE res_proveedor_sms <= 12
* </code>
*
* @param mixed $resProveedorSms The value to use as filter.
* Use scalar values for equality.
* Use array values for in_array() equivalent.
* Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return RespuestasSmsQuery The current query, for fluid interface
*/
public function filterByResProveedorSms($resProveedorSms = null, $comparison = null)
{
if (is_array($resProveedorSms)) {
$useMinMax = false;
if (isset($resProveedorSms['min'])) {
$this->addUsingAlias(RespuestasSmsPeer::RES_PROVEEDOR_SMS, $resProveedorSms['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($resProveedorSms['max'])) {
$this->addUsingAlias(RespuestasSmsPeer::RES_PROVEEDOR_SMS, $resProveedorSms['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(RespuestasSmsPeer::RES_PROVEEDOR_SMS, $resProveedorSms, $comparison);
}
/**
* Filter the query on the res_emisor column
*
* Example usage:
* <code>
* $query->filterByResEmisor(1234); // WHERE res_emisor = 1234
* $query->filterByResEmisor(array(12, 34)); // WHERE res_emisor IN (12, 34)
* $query->filterByResEmisor(array('min' => 12)); // WHERE res_emisor >= 12
* $query->filterByResEmisor(array('max' => 12)); // WHERE res_emisor <= 12
* </code>
*
* @param mixed $resEmisor The value to use as filter.
* Use scalar values for equality.
* Use array values for in_array() equivalent.
* Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return RespuestasSmsQuery The current query, for fluid interface
*/
public function filterByResEmisor($resEmisor = null, $comparison = null)
{
if (is_array($resEmisor)) {
$useMinMax = false;
if (isset($resEmisor['min'])) {
$this->addUsingAlias(RespuestasSmsPeer::RES_EMISOR, $resEmisor['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($resEmisor['max'])) {
$this->addUsingAlias(RespuestasSmsPeer::RES_EMISOR, $resEmisor['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(RespuestasSmsPeer::RES_EMISOR, $resEmisor, $comparison);
}
/**
* Filter the query on the res_mensaje column
*
* Example usage:
* <code>
* $query->filterByResMensaje('fooValue'); // WHERE res_mensaje = 'fooValue'
* $query->filterByResMensaje('%fooValue%'); // WHERE res_mensaje LIKE '%fooValue%'
* </code>
*
* @param string $resMensaje The value to use as filter.
* Accepts wildcards (* and % trigger a LIKE)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return RespuestasSmsQuery The current query, for fluid interface
*/
public function filterByResMensaje($resMensaje = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($resMensaje)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $resMensaje)) {
$resMensaje = str_replace('*', '%', $resMensaje);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(RespuestasSmsPeer::RES_MENSAJE, $resMensaje, $comparison);
}
/**
* Filter the query on the res_http_code_respuesta_peticion column
*
* Example usage:
* <code>
* $query->filterByResHttpCodeRespuestaPeticion(1234); // WHERE res_http_code_respuesta_peticion = 1234
* $query->filterByResHttpCodeRespuestaPeticion(array(12, 34)); // WHERE res_http_code_respuesta_peticion IN (12, 34)
* $query->filterByResHttpCodeRespuestaPeticion(array('min' => 12)); // WHERE res_http_code_respuesta_peticion >= 12
* $query->filterByResHttpCodeRespuestaPeticion(array('max' => 12)); // WHERE res_http_code_respuesta_peticion <= 12
* </code>
*
* @param mixed $resHttpCodeRespuestaPeticion The value to use as filter.
* Use scalar values for equality.
* Use array values for in_array() equivalent.
* Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return RespuestasSmsQuery The current query, for fluid interface
*/
public function filterByResHttpCodeRespuestaPeticion($resHttpCodeRespuestaPeticion = null, $comparison = null)
{
if (is_array($resHttpCodeRespuestaPeticion)) {
$useMinMax = false;
if (isset($resHttpCodeRespuestaPeticion['min'])) {
$this->addUsingAlias(RespuestasSmsPeer::RES_HTTP_CODE_RESPUESTA_PETICION, $resHttpCodeRespuestaPeticion['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($resHttpCodeRespuestaPeticion['max'])) {
$this->addUsingAlias(RespuestasSmsPeer::RES_HTTP_CODE_RESPUESTA_PETICION, $resHttpCodeRespuestaPeticion['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(RespuestasSmsPeer::RES_HTTP_CODE_RESPUESTA_PETICION, $resHttpCodeRespuestaPeticion, $comparison);
}
/**
* Filter the query on the created_at column
*
* Example usage:
* <code>
* $query->filterByCreatedAt('2011-03-14'); // WHERE created_at = '2011-03-14'
* $query->filterByCreatedAt('now'); // WHERE created_at = '2011-03-14'
* $query->filterByCreatedAt(array('max' => 'yesterday')); // WHERE created_at < '2011-03-13'
* </code>
*
* @param mixed $createdAt The value to use as filter.
* Values can be integers (unix timestamps), DateTime objects, or strings.
* Empty strings are treated as NULL.
* Use scalar values for equality.
* Use array values for in_array() equivalent.
* Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return RespuestasSmsQuery The current query, for fluid interface
*/
public function filterByCreatedAt($createdAt = null, $comparison = null)
{
if (is_array($createdAt)) {
$useMinMax = false;
if (isset($createdAt['min'])) {
$this->addUsingAlias(RespuestasSmsPeer::CREATED_AT, $createdAt['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($createdAt['max'])) {
$this->addUsingAlias(RespuestasSmsPeer::CREATED_AT, $createdAt['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(RespuestasSmsPeer::CREATED_AT, $createdAt, $comparison);
}
/**
* Filter the query on the updated_at column
*
* Example usage:
* <code>
* $query->filterByUpdatedAt('2011-03-14'); // WHERE updated_at = '2011-03-14'
* $query->filterByUpdatedAt('now'); // WHERE updated_at = '2011-03-14'
* $query->filterByUpdatedAt(array('max' => 'yesterday')); // WHERE updated_at < '2011-03-13'
* </code>
*
* @param mixed $updatedAt The value to use as filter.
* Values can be integers (unix timestamps), DateTime objects, or strings.
* Empty strings are treated as NULL.
* Use scalar values for equality.
* Use array values for in_array() equivalent.
* Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return RespuestasSmsQuery The current query, for fluid interface
*/
public function filterByUpdatedAt($updatedAt = null, $comparison = null)
{
if (is_array($updatedAt)) {
$useMinMax = false;
if (isset($updatedAt['min'])) {
$this->addUsingAlias(RespuestasSmsPeer::UPDATED_AT, $updatedAt['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($updatedAt['max'])) {
$this->addUsingAlias(RespuestasSmsPeer::UPDATED_AT, $updatedAt['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(RespuestasSmsPeer::UPDATED_AT, $updatedAt, $comparison);
}
/**
* Exclude object from result
*
* @param RespuestasSms $respuestasSms Object to remove from the list of results
*
* @return RespuestasSmsQuery The current query, for fluid interface
*/
public function prune($respuestasSms = null)
{
if ($respuestasSms) {
$this->addUsingAlias(RespuestasSmsPeer::RES_ID, $respuestasSms->getResId(), Criteria::NOT_EQUAL);
}
return $this;
}
}
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<database name="default" defaultIdMethod="native" namespace="AppBundle\Model"> <database name="default" defaultIdMethod="native" namespace="AppBundle\Model">
<table name="notifica" phpName="Notifica" idMethod="native"> <table name="notifica" phpName="Notifica" idMethod="native">
<column name="id" phpName="Id" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/> <column name="id" phpName="Id" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
...@@ -20,4 +19,16 @@ ...@@ -20,4 +19,16 @@
<parameter name="Engine" value="InnoDB"/> <parameter name="Engine" value="InnoDB"/>
</vendor> </vendor>
</table> </table>
<table name="respuestas_sms" phpName="RespuestasSms" idMethod="native">
<column name="res_id" phpName="ResId" type="INTEGER" primaryKey="true" required="true"/>
<column name="res_proveedor_sms" phpName="ResProveedorSms" type="INTEGER" required="true"/>
<column name="res_emisor" phpName="ResEmisor" type="INTEGER" required="true"/>
<column name="res_mensaje" phpName="ResMensaje" type="LONGVARCHAR" required="true"/>
<column name="res_http_code_respuesta_peticion" phpName="ResHttpCodeRespuestaPeticion" type="INTEGER" required="true"/>
<column name="created_at" phpName="CreatedAt" type="TIMESTAMP" required="true" defaultExpr="CURRENT_TIMESTAMP"/>
<column name="updated_at" phpName="UpdatedAt" type="TIMESTAMP" required="true" defaultValue="0000-00-00 00:00:00"/>
<vendor type="mysql">
<parameter name="Engine" value="InnoDB"/>
</vendor>
</table>
</database> </database>
\ No newline at end of file
...@@ -31,7 +31,7 @@ class EnvioSmsController extends FOSRestController { ...@@ -31,7 +31,7 @@ class EnvioSmsController extends FOSRestController {
* @Method({"POST"}) * @Method({"POST"})
*/ */
public function enviarSmsAction() { public function enviarSmsAction() {
print_r('Enviando mensaje');
$campana = $_POST['campana']; $campana = $_POST['campana'];
$telefono = $_POST['telefono']; $telefono = $_POST['telefono'];
$mensaje = $_POST['mensaje']; $mensaje = $_POST['mensaje'];
...@@ -51,6 +51,7 @@ class EnvioSmsController extends FOSRestController { ...@@ -51,6 +51,7 @@ class EnvioSmsController extends FOSRestController {
if ($idmetodo == 1) { //nrsgateway if ($idmetodo == 1) { //nrsgateway
// $log->debug('mensajeee: ' . $mensaje); // $log->debug('mensajeee: ' . $mensaje);
$log->debug('Selecciona nrsgateway');
$usuario = Utiles::getParametroConfiguracion('nrsgateway_user'); $usuario = Utiles::getParametroConfiguracion('nrsgateway_user');
$password = Utiles::getParametroConfiguracion('nrsgateway_pws'); $password = Utiles::getParametroConfiguracion('nrsgateway_pws');
$url = Utiles::getParametroConfiguracion('nrsgateway_url'); $url = Utiles::getParametroConfiguracion('nrsgateway_url');
...@@ -58,11 +59,13 @@ class EnvioSmsController extends FOSRestController { ...@@ -58,11 +59,13 @@ class EnvioSmsController extends FOSRestController {
} else { //teltech } else { //teltech
if ($idmetodo == 2) { if ($idmetodo == 2) {
$log->debug('Selecciona Teltech');
$usuario = Utiles::getParametroConfiguracion('teltech_user'); $usuario = Utiles::getParametroConfiguracion('teltech_user');
$password = Utiles::getParametroConfiguracion('teltech_pws'); $password = Utiles::getParametroConfiguracion('teltech_pws');
$url = Utiles::getParametroConfiguracion('teltech_url'); $url = Utiles::getParametroConfiguracion('teltech_url');
return $this->enviarMensaje($campana, $telefono, $mensaje, $usuario, $password, $url); return $this->enviarMensaje($campana, $telefono, $mensaje, $usuario, $password, $url);
} else { //Amazon } else { //Amazon
$log->debug('Selecciona Amazon');
return $this->enviarMensajeAmazon($telefono, $mensaje); return $this->enviarMensajeAmazon($telefono, $mensaje);
} }
} }
...@@ -99,14 +102,15 @@ class EnvioSmsController extends FOSRestController { ...@@ -99,14 +102,15 @@ class EnvioSmsController extends FOSRestController {
$resp = ""; $resp = "";
if (isset($array['error']['code'])) { if (isset($array['error']['code'])) {
$log->debug('Api Devuelve error');
$resp = array( $resp = array(
'success' => false, 'success' => false,
'statusCode' => $array['error']['code'] 'statusCode' => $array['error']['code']
); );
return $resp; return $resp;
} else { } else {
$log = Utiles::setLog('BackendBundle', 'backend/backend');
$log->debug('Api envio exitoso');
$notifica = NotificaQuery::create()->filterByCampana($campana)->filterByTelefono($movil)->find(); $notifica = NotificaQuery::create()->filterByCampana($campana)->filterByTelefono($movil)->find();
$resp = ""; $resp = "";
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
*/ */
if (!isset($_SERVER['HTTP_HOST'])) { if (!isset($_SERVER['HTTP_HOST'])) {
exit('This script cannot be run from the CLI. Run it from a browser.'); exit("This script cannot be run from the CLI. Run it from a browser.\n");
} }
if (!in_array(@$_SERVER['REMOTE_ADDR'], array( if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
...@@ -38,9 +38,216 @@ $hasMinorProblems = (bool) count($minorProblems); ...@@ -38,9 +38,216 @@ $hasMinorProblems = (bool) count($minorProblems);
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="robots" content="noindex,nofollow" /> <meta name="robots" content="noindex,nofollow" />
<title>Symfony Configuration Checker</title> <title>Symfony Configuration Checker</title>
<link rel="stylesheet" href="bundles/framework/css/structure.css" media="all" /> <style>
<link rel="stylesheet" href="bundles/framework/css/body.css" media="all" /> /* styles copied from symfony framework bundle */
<style type="text/css"> html {
background: #eee;
}
body {
font: 11px Verdana, Arial, sans-serif;
color: #333;
}
.sf-reset, .sf-reset .block, .sf-reset #message {
margin: auto;
}
img {
border: 0;
}
.clear {
clear: both;
height: 0;
font-size: 0;
line-height: 0;
}
.clear-fix:after {
content: "\0020";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.clear-fix {
display: inline-block;
}
* html .clear-fix {
height: 1%;
}
.clear-fix {
display: block;
}
.header {
padding: 30px 30px 20px 30px;
}
.header-logo {
float: left;
}
.search {
float: right;
padding-top: 20px;
}
.search label {
line-height: 28px;
vertical-align: middle;
}
.search input {
width: 195px;
font-size: 12px;
border: 1px solid #dadada;
background: #fff url(data:image/gif;base64,R0lGODlhAQAFAKIAAPX19e/v7/39/fr6+urq6gAAAAAAAAAAACH5BAAAAAAALAAAAAABAAUAAAMESAEjCQA7) repeat-x left top;
padding: 5px 6px;
color: #565656;
}
.search input[type="search"] {
-webkit-appearance: textfield;
}
#content {
width: 970px;
margin: 0 auto;
}
#content pre {
white-space: normal;
font-family: Arial, Helvetica, sans-serif;
}
/*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 3.1.2
build: 56
*/
.sf-reset div,.sf-reset dl,.sf-reset dt,.sf-reset dd,.sf-reset ul,.sf-reset ol,.sf-reset li,.sf-reset h1,.sf-reset h2,.sf-reset h3,.sf-reset h4,.sf-reset h5,.sf-reset h6,.sf-reset pre,.sf-reset code,.sf-reset form,.sf-reset fieldset,.sf-reset legend,.sf-reset input,.sf-reset textarea,.sf-reset p,.sf-reset blockquote,.sf-reset th,.sf-reset td{margin:0;padding:0;}.sf-reset table{border-collapse:collapse;border-spacing:0;}.sf-reset fieldset,.sf-reset img{border:0;}.sf-reset address,.sf-reset caption,.sf-reset cite,.sf-reset code,.sf-reset dfn,.sf-reset em,.sf-reset strong,.sf-reset th,.sf-reset var{font-style:normal;font-weight:normal;}.sf-reset li{list-style:none;}.sf-reset caption,.sf-reset th{text-align:left;}.sf-reset h1,.sf-reset h2,.sf-reset h3,.sf-reset h4,.sf-reset h5,.sf-reset h6{font-size:100%;font-weight:normal;}.sf-reset q:before,.sf-reset q:after{content:'';}.sf-reset abbr,.sf-reset acronym{border:0;font-variant:normal;}.sf-reset sup{vertical-align:text-top;}.sf-reset sub{vertical-align:text-bottom;}.sf-reset input,.sf-reset textarea,.sf-reset select{font-family:inherit;font-size:inherit;font-weight:inherit;}.sf-reset input,.sf-reset textarea,.sf-reset select{font-size:100%;}.sf-reset legend{color:#000;}
.sf-reset abbr {
border-bottom: 1px dotted #000;
cursor: help;
}
.sf-reset p {
font-size: 14px;
line-height: 20px;
padding-bottom: 20px;
}
.sf-reset strong {
color: #313131;
font-weight: bold;
}
.sf-reset a {
color: #6c6159;
}
.sf-reset a img {
border: none;
}
.sf-reset a:hover {
text-decoration: underline;
}
.sf-reset em {
font-style: italic;
}
.sf-reset h2,
.sf-reset h3 {
font-weight: bold;
}
.sf-reset h1 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 20px;
color: #313131;
word-wrap: break-word;
}
.sf-reset li {
padding-bottom: 10px;
}
.sf-reset .block {
-moz-border-radius: 16px;
-webkit-border-radius: 16px;
border-radius: 16px;
margin-bottom: 20px;
background-color: #FFFFFF;
border: 1px solid #dfdfdf;
padding: 40px 50px;
word-break: break-all;
}
.sf-reset h2 {
font-size: 16px;
font-family: Arial, Helvetica, sans-serif;
}
.sf-reset li a {
background: none;
color: #868686;
text-decoration: none;
}
.sf-reset li a:hover {
background: none;
color: #313131;
text-decoration: underline;
}
.sf-reset ol {
padding: 10px 0;
}
.sf-reset ol li {
list-style: decimal;
margin-left: 20px;
padding: 2px;
padding-bottom: 20px;
}
.sf-reset ol ol li {
list-style-position: inside;
margin-left: 0;
white-space: nowrap;
font-size: 12px;
padding-bottom: 0;
}
.sf-reset li .selected {
background-color: #ffd;
}
.sf-button {
display: -moz-inline-box;
display: inline-block;
text-align: center;
vertical-align: middle;
border: 0;
background: transparent none;
text-transform: uppercase;
cursor: pointer;
font: bold 11px Arial, Helvetica, sans-serif;
}
.sf-button span {
text-decoration: none;
display: block;
height: 28px;
float: left;
}
.sf-button .border-l {
text-decoration: none;
display: block;
height: 28px;
float: left;
padding: 0 0 0 7px;
background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAcCAYAAACtQ6WLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQtJREFUeNpiPHnyJAMakARiByDWYEGT8ADiYGVlZStubm5xlv///4MEQYoKZGRkQkRERLRYWVl5wYJQyXBZWdkwCQkJUxAHKgaWlAHSLqKiosb//v1DsYMFKGCvoqJiDmQzwXTAJYECulxcXNLoumCSoszMzDzoumDGghQwYZUECWIzkrAkSIIGOmlkLI10AiX//P379x8jIyMTNmPf/v79+ysLCwsvuiQoNi5//fr1Kch4dAyS3P/gwYMTQBP+wxwHw0xA4gkQ73v9+vUZdJ2w1Lf82bNn4iCHCQoKasHsZw4ODgbRIL8c+/Lly5M3b978Y2dn5wC6npkFLXnsAOKLjx49AmUHLYAAAwBoQubG016R5wAAAABJRU5ErkJggg==) no-repeat top left;
}
.sf-button .border-r {
padding: 0 7px 0 0;
background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAcCAYAAACtQ6WLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAR1JREFUeNpiPHnyZCMDA8MNID5gZmb2nAEJMH7//v3N169fX969e/cYkL8WqGAHXPLv37//QYzfv39/fvPmzbUnT56sAXInmJub/2H5/x8sx8DCwsIrISFhDmQyPX78+CmQXs70798/BmQsKipqBNTgdvz4cWkmkE5kDATMioqKZkCFdiwg1eiAi4tLGqhQF24nMmBmZuYEigth1QkEbEBxTlySYPvJkwSJ00AnjYylgU6gxB8g/oFVEphkvgLF32KNMmCCewYUv4qhEyj47+HDhyeBzIMYOoEp8CxQw56wsLAncJ1//vz5/P79+2svX74EJc2V4BT58+fPd8CE/QKYHMGJOiIiAp6oWW7evDkNSF8DZYfIyEiU7AAQYACJ2vxVdJW4eQAAAABJRU5ErkJggg==) right top no-repeat;
}
.sf-button .btn-bg {
padding: 0 14px;
color: #636363;
line-height: 28px;
background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAcCAYAAACgXdXMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAClJREFUeNpiPnny5EKGf//+/Wf6//8/A4QAcrGzKCZwGc9sa2urBBBgAIbDUoYVp9lmAAAAAElFTkSuQmCC) repeat-x top left;
}
.sf-button:hover .border-l,
.sf-button-selected .border-l {
background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAcCAYAAACtQ6WLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAR9JREFUeNpi/P//PwMyOHfunDqQSgNiexZkibNnzxYBqZa3HOs5v7PcYQBLnjlzhg1IbfzIdsTjA/t+ht9Mr8GKwZL//v3r+sB+0OMN+zqIEf8gFMvJkyd1gXTOa9YNDP//otrPAtSV/Jp9HfPff78Z0AEL0LUeXxivMfxD0wXTqfjj/2ugkf+wSrL9/YtpJEyS4S8WI5Ek/+GR/POPFjr//cenE6/kP9q4Fo/kr39/mdj+M/zFkGQCSj5i+ccPjLJ/GBgkuYOHQR1sNDpmAkb2LBmWwL///zKCIxwZM0VHR18G6p4uxeLLAA4tJMwEshiou1iMxXaHLGswA+t/YbhORuQUv2DBAnCifvxzI+enP3dQJUFg/vz5sOzgBBBgAPxX9j0YnH4JAAAAAElFTkSuQmCC) no-repeat top left;
}
.sf-button:hover .border-r,
.sf-button-selected .border-r {
background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAcCAYAAACtQ6WLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAT5JREFUeNpiPHv27BkGBoaDQDzLyMjoJgMSYHrM3WX8hn1d0f///88DFRYhSzIuv2X5H8Rg/SfKIPDTkYH/l80OINffxMTkF9O/f/8ZQPgnwyuGl+wrGd6x7vf49+9fO9jYf3+Bkkj4NesmBqAV+SdPntQC6vzHgIz//gOawbqOGchOxtAJwp8Zr4F0e7D8/fuPAR38/P8eZIo0yz8skv8YvoIk+YE6/zNgAyD7sRqLkPzzjxY6/+HS+R+fTkZ8djLh08lCUCcuSWawJGbwMTGwg7zyBatX2Bj5QZKPsBrLzaICktzN8g/NWEYGZgYZjoC/wMiei5FMpFh8QPSU6Ojoy3Cd7EwiDBJsDgxiLNY7gLrKQGIsHAxSDHxAO2TZ/b8D+TVxcXF9MCtYtLiKLgDpfUDVsxITE1GyA0CAAQA2E/N8VuHyAAAAAABJRU5ErkJggg==) right top no-repeat;
}
.sf-button:hover .btn-bg,
.sf-button-selected .btn-bg {
color: #FFFFFF;
text-shadow:0 1px 1px #6b9311;
background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAcCAIAAAAvP0KbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEFJREFUeNpiPnv2LNMdvlymf///M/37B8R/QfQ/MP33L4j+B6Qh7L9//sHpf2h8MA1V+w/KRjYLaDaLCU8vQIABAFO3TxZriO4yAAAAAElFTkSuQmCC) repeat-x top left;
}
/* styles copied from bundles/sensiodistribution/webconfigurator/css/install.css */ /* styles copied from bundles/sensiodistribution/webconfigurator/css/install.css */
body { body {
font-size: 14px; font-size: 14px;
...@@ -63,7 +270,7 @@ $hasMinorProblems = (bool) count($minorProblems); ...@@ -63,7 +270,7 @@ $hasMinorProblems = (bool) count($minorProblems);
} }
.sf-reset ul a, .sf-reset ul a,
.sf-reset ul a:hover { .sf-reset ul a:hover {
background: url(../images/blue-arrow.png) no-repeat right 6px; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAYAAAAx8TU7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFdJREFUeNpiYACBjjOhDEiACSggCKTLgXQ5TJARqhIkcReIKxgqTGYxwvV0nDEGkmeAOIwJySiQ4HsgvseIpGo3ELsCtZ9lRDIvDCiwhwHJPEFkJwEEGACq6hdnax8y1AAAAABJRU5ErkJggg==) no-repeat right 7px;
padding-right: 10px; padding-right: 10px;
} }
.sf-reset ul, ol { .sf-reset ul, ol {
...@@ -126,7 +333,7 @@ $hasMinorProblems = (bool) count($minorProblems); ...@@ -126,7 +333,7 @@ $hasMinorProblems = (bool) count($minorProblems);
<div id="content"> <div id="content">
<div class="header clear-fix"> <div class="header clear-fix">
<div class="header-logo"> <div class="header-logo">
<img src="bundles/framework/images/logo_symfony.png" alt="Symfony" /> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALYAAAA+CAMAAACxzRGDAAAAUVBMVEX////Ly8yko6WLioxkYmVXVVkwLjLl5eWxsLJKSEzy8vJxcHLY2Ni+vb89Oz9XVVh+fH+Yl5n///+xsbLY2Nlxb3KkpKWXlph+fX+LiYy+vr/IZP61AAAAAXRSTlMAQObYZgAABRBJREFUeNrVmtuWoyAQRS1FEEQSzQU7//+hYxUiXsKQZLJWM+chsUloN+WhCuguYoKyYqzmvGasKqH4HyRKxndipcgcumH8qViTM7TkUclcwaHmf5XM0eWq4km1KjdqXfMXJHVe1J3hL8lk5fCGv6wmT+o0d87U+XNrk0Y9nfv+7LM6ZJH5ZBL6LAbSxQ3Q5FDr22Skr8PQSy4n7isnsQxSX4r6pobhjCHHeDNOKrO3yGmCvZOjV9jmt8ulTdXFKdbKLNh+kOMvBzuVRa4Y7MUsdEUSWQe7xxCfZmcwjHU83LqzFvSbJQOXQvptbPnEFoyZtUUGwTeKuLuTHyT1kaP0P6cR01OKvv448gtl61dqZfmJezQmU/t+1R2fJLtBwXV6uWGwB9SZPrn0fKO2WAvQN1PUhHjTom3xgXYTkvlSKHs19OhslETq6X3HrXbjt8XbGj9b4Gi+lUAnL6XxQj8Pyk9N4Bt1xUrsLVN/3isYMug8rODMdbgOvoHs8uAb2fcANIAzkKCLYy+AXRpSU8sr1r4P67xhLgPp7vM32zlqt7Bhq2fI1Hwp+VgANxok59SsGV3oqdUL0YVDMRY7Yg8QLbVUU4NZNoOq5hJHuxEM28Sh/IyUZ8D3reR+yc58EGvOy2U0HQL6G9V+kWyEWHmzaMx6t4o9RhOm/riUiYrzqij4Ptqkn7AaCXqc+F47m04ahfde7YIz8RHEBN6BdVwdIGRVdNbKqYu1Hc0x0wBY4wqC8+XUgBGnj81SZsQB+0yAS1x/BlI/6ebHHk0lauQLuPDpu6EwAVJ7T0rl2uXa23jcqNyOZekhqYHRz3JOANrF4wCCmEs1f9D1lUe0n4NAATed80Y5e0Q7CO2TezM/BR6wKdgQzKbCF4uOQC3Bk0fKAzbFlyRWg3gksA/gmm7eOjrpaKX7fHlEW2xLbE6GZsPiCiShVzN7RG2xTz2G+OJtEqzdJ7APxy3MrSsV0VukXbKMp9lhs5BN6dr3CN+sySUaoxGwfRUM3I/gdPYONgVU+PLX4vUWm32AvUySarbONvcpV2RQEPKKjEBHFk01kQDGRblnn8ZuE9g+JUl8OWAPbkFK2K6JxhJVvF47FzYYnAN22ttwxKYCoH36rheEB7KG/HF/YUaa2G5JF+55tpyrl7B1WHM39HuP2N2EXPl1UBu8vbj4OjvD+NoTE4ssF+ScARgaJY1N7+u8bY/Y9BSM5PKwJbvMVab32YP5FB5TtcYVrGoASolVLTzI7kVsYVxRtAb5n2JXq1vCdtd47XtYItynrN0835PasLg0y13aOPbmPI+on2Lr9e5tjSHvgkAvclUjL3Fsdaw03IzgTR62yYClk7QMah4IQ0qSsoYYbOix6zJR1ZGDNMOY3Bb6W5S6jiyovep3t7bUPyoq7OkjYumrfESp8zSBc/OLosVf+nTnnKjsqR16++WDwpI8FxJWRFTlI6NKnqYJaL96TqjAbo9Toi5QiWBDcmfdFV+T8dkvFe5bItgstbM2X6QG2mVun+cazfRwOS0eiaeRRJKgLfc3BQAqfnhJyz8lfR6580SF/FXVu83Nz1xrrnFqqXL6Qxl47DNSm4RFflvN5sABDD8peouqLLKQXVdGbnqf+qIpOxON4ZyYdJEJ6sy4zS2c5eRPTT4Jyp46qDE5/ptAWqJOQ9e6yE82FXBbZCk1/tXVoshVoopE3CB0zmraI3nbqCJ/gW3ZMgtbC5nh/QHlOoOZBxQCRgAAAABJRU5ErkJggg==" alt="Symfony" />
</div> </div>
<div class="search"> <div class="search">
...@@ -134,7 +341,7 @@ $hasMinorProblems = (bool) count($minorProblems); ...@@ -134,7 +341,7 @@ $hasMinorProblems = (bool) count($minorProblems);
<div class="form-row"> <div class="form-row">
<label for="search-id"> <label for="search-id">
<img src="bundles/framework/images/grey_magnifier.png" alt="Search on Symfony website" /> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAABUElEQVQoz2NgAIJ29iBdD0d7X2cPb+tY2f9MDMjgP2O2hKu7vS8CBlisZUNSMJ3fxRMkXO61wm2ue6I3iB1q8Z8ZriDZFCS03fm/wX+1/xp/TBo8QPxeqf+MUAW+QIFKj/+q/wX/c/3n/i/6Qd/bx943z/Q/K1SBI1D9fKv/AhCn/Wf5L5EHdFGKw39OqAIXoPpOMziX4T9/DFBBnuN/HqhAEtCKCNf/XDA/rZRyAmrpsvrPDVUw3wrkqCiLaewg6TohX1d7X0ffs5r/OaAKfinmgt3t4ulr4+Xg4ANip3j+l/zPArNT4LNOD0pAgWCSOUIBy3+h/+pXbBa5tni0eMx23+/mB1YSYnENroT5Pw/QSOX/mkCo+l/jgo0v2KJA643s8PgAmsMBDCbu/5xALHPB2husxN9uCzsDOgAq5kAoaZVnYMCh5Ky1r88Eh/+iABM8jUk7ClYIAAAAAElFTkSuQmCC" alt="Search on Symfony website" />
</label> </label>
<input name="q" id="search-id" type="search" placeholder="Search on Symfony website" /> <input name="q" id="search-id" type="search" placeholder="Search on Symfony website" />
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment