Commit 0df4353688b5a4d3e938a22c4fff82ac7039cb50
0 parents
Exists in
master
and in
9 other branches
inicializando proyecto de practica
Showing
226 changed files
with
25689 additions
and
0 deletions
Show diff stats
Too many changes.
To preserve performance only 100 of 226 files displayed.
.gitignore
README.md
app/.htaccess
app/AppCache.php
app/AppKernel.php
| ... | ... | @@ -0,0 +1,36 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +use Symfony\Component\HttpKernel\Kernel; | |
| 4 | +use Symfony\Component\Config\Loader\LoaderInterface; | |
| 5 | + | |
| 6 | +class AppKernel extends Kernel | |
| 7 | +{ | |
| 8 | + public function registerBundles() | |
| 9 | + { | |
| 10 | + $bundles = array( | |
| 11 | + new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), | |
| 12 | + new Symfony\Bundle\SecurityBundle\SecurityBundle(), | |
| 13 | + new Symfony\Bundle\TwigBundle\TwigBundle(), | |
| 14 | + new Symfony\Bundle\MonologBundle\MonologBundle(), | |
| 15 | + new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(), | |
| 16 | + new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), | |
| 17 | + new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), | |
| 18 | + new AppBundle\AppBundle(), | |
| 19 | + new UBV\PracticaBundle\UBVPracticaBundle(), | |
| 20 | + ); | |
| 21 | + | |
| 22 | + if (in_array($this->getEnvironment(), array('dev', 'test'), true)) { | |
| 23 | + $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle(); | |
| 24 | + $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); | |
| 25 | + $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); | |
| 26 | + $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); | |
| 27 | + } | |
| 28 | + | |
| 29 | + return $bundles; | |
| 30 | + } | |
| 31 | + | |
| 32 | + public function registerContainerConfiguration(LoaderInterface $loader) | |
| 33 | + { | |
| 34 | + $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); | |
| 35 | + } | |
| 36 | +} | ... | ... |
app/Resources/views/base.html.twig
| ... | ... | @@ -0,0 +1,13 @@ |
| 1 | +<!DOCTYPE html> | |
| 2 | +<html> | |
| 3 | + <head> | |
| 4 | + <meta charset="UTF-8" /> | |
| 5 | + <title>{% block title %}Welcome!{% endblock %}</title> | |
| 6 | + {% block stylesheets %}{% endblock %} | |
| 7 | + <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" /> | |
| 8 | + </head> | |
| 9 | + <body> | |
| 10 | + {% block body %}{% endblock %} | |
| 11 | + {% block javascripts %}{% endblock %} | |
| 12 | + </body> | |
| 13 | +</html> | ... | ... |
app/Resources/views/default/index.html.twig
| ... | ... | @@ -0,0 +1,76 @@ |
| 1 | +{% extends 'base.html.twig' %} | |
| 2 | + | |
| 3 | +{% block body %} | |
| 4 | + <div id="wrapper"> | |
| 5 | + <div id="container"> | |
| 6 | + <div id="welcome"> | |
| 7 | + <h1><span>Welcome to</span> Symfony {{ constant('Symfony\\Component\\HttpKernel\\Kernel::VERSION') }}</h1> | |
| 8 | + </div> | |
| 9 | + | |
| 10 | + <div id="status"> | |
| 11 | + <p> | |
| 12 | + <svg id="icon-status" width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z" fill="#759E1A"/></svg> | |
| 13 | + | |
| 14 | + Your application is now ready. You can start working on it at: | |
| 15 | + <code>{{ base_dir }}</code> | |
| 16 | + </p> | |
| 17 | + </div> | |
| 18 | + | |
| 19 | + <div id="next"> | |
| 20 | + <h2>What's next?</h2> | |
| 21 | + <p> | |
| 22 | + <svg id="icon-book" version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="-12.5 9 64 64" enable-background="new -12.5 9 64 64" xml:space="preserve"> | |
| 23 | + <path fill="#AAA" d="M6.8,40.8c2.4,0.8,4.5-0.7,4.9-2.5c0.2-1.2-0.3-2.1-1.3-3.2l-0.8-0.8c-0.4-0.5-0.6-1.3-0.2-1.9 | |
| 24 | + c0.4-0.5,0.9-0.8,1.8-0.5c1.3,0.4,1.9,1.3,2.9,2.2c-0.4,1.4-0.7,2.9-0.9,4.2l-0.2,1c-0.7,4-1.3,6.2-2.7,7.5 | |
| 25 | + c-0.3,0.3-0.7,0.5-1.3,0.6c-0.3,0-0.4-0.3-0.4-0.3c0-0.3,0.2-0.3,0.3-0.4c0.2-0.1,0.5-0.3,0.4-0.8c0-0.7-0.6-1.3-1.3-1.3 | |
| 26 | + c-0.6,0-1.4,0.6-1.4,1.7s1,1.9,2.4,1.8c0.8,0,2.5-0.3,4.2-2.5c2-2.5,2.5-5.4,2.9-7.4l0.5-2.8c0.3,0,0.5,0.1,0.8,0.1 | |
| 27 | + c2.4,0.1,3.7-1.3,3.7-2.3c0-0.6-0.3-1.2-0.9-1.2c-0.4,0-0.8,0.3-1,0.8c-0.1,0.6,0.8,1.1,0.1,1.5c-0.5,0.3-1.4,0.6-2.7,0.4l0.3-1.3 | |
| 28 | + c0.5-2.6,1-5.7,3.2-5.8c0.2,0,0.8,0,0.8,0.4c0,0.2,0,0.2-0.2,0.5c-0.2,0.3-0.3,0.4-0.2,0.7c0,0.7,0.5,1.1,1.2,1.1 | |
| 29 | + c0.9,0,1.2-1,1.2-1.4c0-1.2-1.2-1.8-2.6-1.8c-1.5,0.1-2.8,0.9-3.7,2.1c-1.1,1.3-1.8,2.9-2.3,4.5c-0.9-0.8-1.6-1.8-3.1-2.3 | |
| 30 | + c-1.1-0.7-2.3-0.5-3.4,0.3c-0.5,0.4-0.8,1-1,1.6c-0.4,1.5,0.4,2.9,0.8,3.4l0.9,1c0.2,0.2,0.6,0.8,0.4,1.5c-0.3,0.8-1.2,1.3-2.1,1 | |
| 31 | + c-0.4-0.2-1-0.5-0.9-0.9c0.1-0.2,0.2-0.3,0.3-0.5s0.1-0.3,0.1-0.3c0.2-0.6-0.1-1.4-0.7-1.6c-0.6-0.2-1.2,0-1.3,0.8 | |
| 32 | + C4.3,38.4,4.7,40,6.8,40.8z M46.1,20.9c0-4.2-3.2-7.5-7.1-7.5h-3.8C34.8,10.8,32.7,9,30.2,9L-2.3,9.1c-2.8,0.1-4.9,2.4-4.9,5.4 | |
| 33 | + L-7,58.6c0,4.8,8.1,13.9,11.6,14.1l34.7-0.1c3.9,0,7-3.4,7-7.6L46.1,20.9z M-0.3,36.4c0-8.6,6.5-15.6,14.5-15.6 | |
| 34 | + c8,0,14.5,7,14.5,15.6S22.1,52,14.2,52C6.1,52-0.3,45-0.3,36.4z M42.1,65.1c0,1.8-1.5,3.1-3.1,3.1H4.6c-0.7,0-3-1.8-4.5-4.4h30.4 | |
| 35 | + c2.8,0,5-2.4,5-5.4V17.9h3.7c1.6,0,2.9,1.4,2.9,3.1V65.1L42.1,65.1z"/> | |
| 36 | + </svg> | |
| 37 | + | |
| 38 | + Read the documentation to learn | |
| 39 | + <a href="https://symfony.com/doc/{{ constant('Symfony\\Component\\HttpKernel\\Kernel::VERSION')[:3] }}/page_creation.html"> | |
| 40 | + How to create your first page in Symfony | |
| 41 | + </a> | |
| 42 | + </p> | |
| 43 | + </div> | |
| 44 | + | |
| 45 | + </div> | |
| 46 | + </div> | |
| 47 | +{% endblock %} | |
| 48 | + | |
| 49 | +{% block stylesheets %} | |
| 50 | +<style> | |
| 51 | + body { background: #F5F5F5; font: 18px/1.5 sans-serif; } | |
| 52 | + h1, h2 { line-height: 1.2; margin: 0 0 .5em; } | |
| 53 | + h1 { font-size: 36px; } | |
| 54 | + h2 { font-size: 21px; margin-bottom: 1em; } | |
| 55 | + p { margin: 0 0 1em 0; } | |
| 56 | + a { color: #0000F0; } | |
| 57 | + a:hover { text-decoration: none; } | |
| 58 | + code { background: #F5F5F5; max-width: 100px; padding: 2px 6px; word-wrap: break-word; } | |
| 59 | + #wrapper { background: #FFF; margin: 1em auto; max-width: 800px; width: 95%; } | |
| 60 | + #container { padding: 2em; } | |
| 61 | + #welcome, #status { margin-bottom: 2em; } | |
| 62 | + #welcome h1 span { display: block; font-size: 75%; } | |
| 63 | + #icon-status, #icon-book { float: left; height: 64px; margin-right: 1em; margin-top: -4px; width: 64px; } | |
| 64 | + #icon-book { display: none; } | |
| 65 | + | |
| 66 | + @media (min-width: 768px) { | |
| 67 | + #wrapper { width: 80%; margin: 2em auto; } | |
| 68 | + #icon-book { display: inline-block; } | |
| 69 | + #status a, #next a { display: block; } | |
| 70 | + | |
| 71 | + @-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } | |
| 72 | + @keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } | |
| 73 | + .sf-toolbar { opacity: 0; -webkit-animation: fade-in 1s .2s forwards; animation: fade-in 1s .2s forwards;} | |
| 74 | + } | |
| 75 | +</style> | |
| 76 | +{% endblock %} | ... | ... |
app/SymfonyRequirements.php
| ... | ... | @@ -0,0 +1,806 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +/* | |
| 4 | + * This file is part of the Symfony package. | |
| 5 | + * | |
| 6 | + * (c) Fabien Potencier <fabien@symfony.com> | |
| 7 | + * | |
| 8 | + * For the full copyright and license information, please view the LICENSE | |
| 9 | + * file that was distributed with this source code. | |
| 10 | + */ | |
| 11 | + | |
| 12 | +/* | |
| 13 | + * Users of PHP 5.2 should be able to run the requirements checks. | |
| 14 | + * This is why the file and all classes must be compatible with PHP 5.2+ | |
| 15 | + * (e.g. not using namespaces and closures). | |
| 16 | + * | |
| 17 | + * ************** CAUTION ************** | |
| 18 | + * | |
| 19 | + * DO NOT EDIT THIS FILE as it will be overridden by Composer as part of | |
| 20 | + * the installation/update process. The original file resides in the | |
| 21 | + * SensioDistributionBundle. | |
| 22 | + * | |
| 23 | + * ************** CAUTION ************** | |
| 24 | + */ | |
| 25 | + | |
| 26 | +/** | |
| 27 | + * Represents a single PHP requirement, e.g. an installed extension. | |
| 28 | + * It can be a mandatory requirement or an optional recommendation. | |
| 29 | + * There is a special subclass, named PhpIniRequirement, to check a php.ini configuration. | |
| 30 | + * | |
| 31 | + * @author Tobias Schultze <http://tobion.de> | |
| 32 | + */ | |
| 33 | +class Requirement | |
| 34 | +{ | |
| 35 | + private $fulfilled; | |
| 36 | + private $testMessage; | |
| 37 | + private $helpText; | |
| 38 | + private $helpHtml; | |
| 39 | + private $optional; | |
| 40 | + | |
| 41 | + /** | |
| 42 | + * Constructor that initializes the requirement. | |
| 43 | + * | |
| 44 | + * @param bool $fulfilled Whether the requirement is fulfilled | |
| 45 | + * @param string $testMessage The message for testing the requirement | |
| 46 | + * @param string $helpHtml The help text formatted in HTML for resolving the problem | |
| 47 | + * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) | |
| 48 | + * @param bool $optional Whether this is only an optional recommendation not a mandatory requirement | |
| 49 | + */ | |
| 50 | + public function __construct($fulfilled, $testMessage, $helpHtml, $helpText = null, $optional = false) | |
| 51 | + { | |
| 52 | + $this->fulfilled = (bool) $fulfilled; | |
| 53 | + $this->testMessage = (string) $testMessage; | |
| 54 | + $this->helpHtml = (string) $helpHtml; | |
| 55 | + $this->helpText = null === $helpText ? strip_tags($this->helpHtml) : (string) $helpText; | |
| 56 | + $this->optional = (bool) $optional; | |
| 57 | + } | |
| 58 | + | |
| 59 | + /** | |
| 60 | + * Returns whether the requirement is fulfilled. | |
| 61 | + * | |
| 62 | + * @return bool true if fulfilled, otherwise false | |
| 63 | + */ | |
| 64 | + public function isFulfilled() | |
| 65 | + { | |
| 66 | + return $this->fulfilled; | |
| 67 | + } | |
| 68 | + | |
| 69 | + /** | |
| 70 | + * Returns the message for testing the requirement. | |
| 71 | + * | |
| 72 | + * @return string The test message | |
| 73 | + */ | |
| 74 | + public function getTestMessage() | |
| 75 | + { | |
| 76 | + return $this->testMessage; | |
| 77 | + } | |
| 78 | + | |
| 79 | + /** | |
| 80 | + * Returns the help text for resolving the problem. | |
| 81 | + * | |
| 82 | + * @return string The help text | |
| 83 | + */ | |
| 84 | + public function getHelpText() | |
| 85 | + { | |
| 86 | + return $this->helpText; | |
| 87 | + } | |
| 88 | + | |
| 89 | + /** | |
| 90 | + * Returns the help text formatted in HTML. | |
| 91 | + * | |
| 92 | + * @return string The HTML help | |
| 93 | + */ | |
| 94 | + public function getHelpHtml() | |
| 95 | + { | |
| 96 | + return $this->helpHtml; | |
| 97 | + } | |
| 98 | + | |
| 99 | + /** | |
| 100 | + * Returns whether this is only an optional recommendation and not a mandatory requirement. | |
| 101 | + * | |
| 102 | + * @return bool true if optional, false if mandatory | |
| 103 | + */ | |
| 104 | + public function isOptional() | |
| 105 | + { | |
| 106 | + return $this->optional; | |
| 107 | + } | |
| 108 | +} | |
| 109 | + | |
| 110 | +/** | |
| 111 | + * Represents a PHP requirement in form of a php.ini configuration. | |
| 112 | + * | |
| 113 | + * @author Tobias Schultze <http://tobion.de> | |
| 114 | + */ | |
| 115 | +class PhpIniRequirement extends Requirement | |
| 116 | +{ | |
| 117 | + /** | |
| 118 | + * Constructor that initializes the requirement. | |
| 119 | + * | |
| 120 | + * @param string $cfgName The configuration name used for ini_get() | |
| 121 | + * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, | |
| 122 | + * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement | |
| 123 | + * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. | |
| 124 | + * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. | |
| 125 | + * Example: You require a config to be true but PHP later removes this config and defaults it to true internally. | |
| 126 | + * @param string|null $testMessage The message for testing the requirement (when null and $evaluation is a boolean a default message is derived) | |
| 127 | + * @param string|null $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a boolean a default help is derived) | |
| 128 | + * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) | |
| 129 | + * @param bool $optional Whether this is only an optional recommendation not a mandatory requirement | |
| 130 | + */ | |
| 131 | + public function __construct($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null, $optional = false) | |
| 132 | + { | |
| 133 | + $cfgValue = ini_get($cfgName); | |
| 134 | + | |
| 135 | + if (is_callable($evaluation)) { | |
| 136 | + if (null === $testMessage || null === $helpHtml) { | |
| 137 | + throw new InvalidArgumentException('You must provide the parameters testMessage and helpHtml for a callback evaluation.'); | |
| 138 | + } | |
| 139 | + | |
| 140 | + $fulfilled = call_user_func($evaluation, $cfgValue); | |
| 141 | + } else { | |
| 142 | + if (null === $testMessage) { | |
| 143 | + $testMessage = sprintf('%s %s be %s in php.ini', | |
| 144 | + $cfgName, | |
| 145 | + $optional ? 'should' : 'must', | |
| 146 | + $evaluation ? 'enabled' : 'disabled' | |
| 147 | + ); | |
| 148 | + } | |
| 149 | + | |
| 150 | + if (null === $helpHtml) { | |
| 151 | + $helpHtml = sprintf('Set <strong>%s</strong> to <strong>%s</strong> in php.ini<a href="#phpini">*</a>.', | |
| 152 | + $cfgName, | |
| 153 | + $evaluation ? 'on' : 'off' | |
| 154 | + ); | |
| 155 | + } | |
| 156 | + | |
| 157 | + $fulfilled = $evaluation == $cfgValue; | |
| 158 | + } | |
| 159 | + | |
| 160 | + parent::__construct($fulfilled || ($approveCfgAbsence && false === $cfgValue), $testMessage, $helpHtml, $helpText, $optional); | |
| 161 | + } | |
| 162 | +} | |
| 163 | + | |
| 164 | +/** | |
| 165 | + * A RequirementCollection represents a set of Requirement instances. | |
| 166 | + * | |
| 167 | + * @author Tobias Schultze <http://tobion.de> | |
| 168 | + */ | |
| 169 | +class RequirementCollection implements IteratorAggregate | |
| 170 | +{ | |
| 171 | + /** | |
| 172 | + * @var Requirement[] | |
| 173 | + */ | |
| 174 | + private $requirements = array(); | |
| 175 | + | |
| 176 | + /** | |
| 177 | + * Gets the current RequirementCollection as an Iterator. | |
| 178 | + * | |
| 179 | + * @return Traversable A Traversable interface | |
| 180 | + */ | |
| 181 | + public function getIterator() | |
| 182 | + { | |
| 183 | + return new ArrayIterator($this->requirements); | |
| 184 | + } | |
| 185 | + | |
| 186 | + /** | |
| 187 | + * Adds a Requirement. | |
| 188 | + * | |
| 189 | + * @param Requirement $requirement A Requirement instance | |
| 190 | + */ | |
| 191 | + public function add(Requirement $requirement) | |
| 192 | + { | |
| 193 | + $this->requirements[] = $requirement; | |
| 194 | + } | |
| 195 | + | |
| 196 | + /** | |
| 197 | + * Adds a mandatory requirement. | |
| 198 | + * | |
| 199 | + * @param bool $fulfilled Whether the requirement is fulfilled | |
| 200 | + * @param string $testMessage The message for testing the requirement | |
| 201 | + * @param string $helpHtml The help text formatted in HTML for resolving the problem | |
| 202 | + * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) | |
| 203 | + */ | |
| 204 | + public function addRequirement($fulfilled, $testMessage, $helpHtml, $helpText = null) | |
| 205 | + { | |
| 206 | + $this->add(new Requirement($fulfilled, $testMessage, $helpHtml, $helpText, false)); | |
| 207 | + } | |
| 208 | + | |
| 209 | + /** | |
| 210 | + * Adds an optional recommendation. | |
| 211 | + * | |
| 212 | + * @param bool $fulfilled Whether the recommendation is fulfilled | |
| 213 | + * @param string $testMessage The message for testing the recommendation | |
| 214 | + * @param string $helpHtml The help text formatted in HTML for resolving the problem | |
| 215 | + * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) | |
| 216 | + */ | |
| 217 | + public function addRecommendation($fulfilled, $testMessage, $helpHtml, $helpText = null) | |
| 218 | + { | |
| 219 | + $this->add(new Requirement($fulfilled, $testMessage, $helpHtml, $helpText, true)); | |
| 220 | + } | |
| 221 | + | |
| 222 | + /** | |
| 223 | + * Adds a mandatory requirement in form of a php.ini configuration. | |
| 224 | + * | |
| 225 | + * @param string $cfgName The configuration name used for ini_get() | |
| 226 | + * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, | |
| 227 | + * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement | |
| 228 | + * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. | |
| 229 | + * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. | |
| 230 | + * Example: You require a config to be true but PHP later removes this config and defaults it to true internally. | |
| 231 | + * @param string $testMessage The message for testing the requirement (when null and $evaluation is a boolean a default message is derived) | |
| 232 | + * @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a boolean a default help is derived) | |
| 233 | + * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) | |
| 234 | + */ | |
| 235 | + public function addPhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null) | |
| 236 | + { | |
| 237 | + $this->add(new PhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence, $testMessage, $helpHtml, $helpText, false)); | |
| 238 | + } | |
| 239 | + | |
| 240 | + /** | |
| 241 | + * Adds an optional recommendation in form of a php.ini configuration. | |
| 242 | + * | |
| 243 | + * @param string $cfgName The configuration name used for ini_get() | |
| 244 | + * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, | |
| 245 | + * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement | |
| 246 | + * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. | |
| 247 | + * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. | |
| 248 | + * Example: You require a config to be true but PHP later removes this config and defaults it to true internally. | |
| 249 | + * @param string $testMessage The message for testing the requirement (when null and $evaluation is a boolean a default message is derived) | |
| 250 | + * @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a boolean a default help is derived) | |
| 251 | + * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) | |
| 252 | + */ | |
| 253 | + public function addPhpIniRecommendation($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null) | |
| 254 | + { | |
| 255 | + $this->add(new PhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence, $testMessage, $helpHtml, $helpText, true)); | |
| 256 | + } | |
| 257 | + | |
| 258 | + /** | |
| 259 | + * Adds a requirement collection to the current set of requirements. | |
| 260 | + * | |
| 261 | + * @param RequirementCollection $collection A RequirementCollection instance | |
| 262 | + */ | |
| 263 | + public function addCollection(RequirementCollection $collection) | |
| 264 | + { | |
| 265 | + $this->requirements = array_merge($this->requirements, $collection->all()); | |
| 266 | + } | |
| 267 | + | |
| 268 | + /** | |
| 269 | + * Returns both requirements and recommendations. | |
| 270 | + * | |
| 271 | + * @return Requirement[] | |
| 272 | + */ | |
| 273 | + public function all() | |
| 274 | + { | |
| 275 | + return $this->requirements; | |
| 276 | + } | |
| 277 | + | |
| 278 | + /** | |
| 279 | + * Returns all mandatory requirements. | |
| 280 | + * | |
| 281 | + * @return Requirement[] | |
| 282 | + */ | |
| 283 | + public function getRequirements() | |
| 284 | + { | |
| 285 | + $array = array(); | |
| 286 | + foreach ($this->requirements as $req) { | |
| 287 | + if (!$req->isOptional()) { | |
| 288 | + $array[] = $req; | |
| 289 | + } | |
| 290 | + } | |
| 291 | + | |
| 292 | + return $array; | |
| 293 | + } | |
| 294 | + | |
| 295 | + /** | |
| 296 | + * Returns the mandatory requirements that were not met. | |
| 297 | + * | |
| 298 | + * @return Requirement[] | |
| 299 | + */ | |
| 300 | + public function getFailedRequirements() | |
| 301 | + { | |
| 302 | + $array = array(); | |
| 303 | + foreach ($this->requirements as $req) { | |
| 304 | + if (!$req->isFulfilled() && !$req->isOptional()) { | |
| 305 | + $array[] = $req; | |
| 306 | + } | |
| 307 | + } | |
| 308 | + | |
| 309 | + return $array; | |
| 310 | + } | |
| 311 | + | |
| 312 | + /** | |
| 313 | + * Returns all optional recommendations. | |
| 314 | + * | |
| 315 | + * @return Requirement[] | |
| 316 | + */ | |
| 317 | + public function getRecommendations() | |
| 318 | + { | |
| 319 | + $array = array(); | |
| 320 | + foreach ($this->requirements as $req) { | |
| 321 | + if ($req->isOptional()) { | |
| 322 | + $array[] = $req; | |
| 323 | + } | |
| 324 | + } | |
| 325 | + | |
| 326 | + return $array; | |
| 327 | + } | |
| 328 | + | |
| 329 | + /** | |
| 330 | + * Returns the recommendations that were not met. | |
| 331 | + * | |
| 332 | + * @return Requirement[] | |
| 333 | + */ | |
| 334 | + public function getFailedRecommendations() | |
| 335 | + { | |
| 336 | + $array = array(); | |
| 337 | + foreach ($this->requirements as $req) { | |
| 338 | + if (!$req->isFulfilled() && $req->isOptional()) { | |
| 339 | + $array[] = $req; | |
| 340 | + } | |
| 341 | + } | |
| 342 | + | |
| 343 | + return $array; | |
| 344 | + } | |
| 345 | + | |
| 346 | + /** | |
| 347 | + * Returns whether a php.ini configuration is not correct. | |
| 348 | + * | |
| 349 | + * @return bool php.ini configuration problem? | |
| 350 | + */ | |
| 351 | + public function hasPhpIniConfigIssue() | |
| 352 | + { | |
| 353 | + foreach ($this->requirements as $req) { | |
| 354 | + if (!$req->isFulfilled() && $req instanceof PhpIniRequirement) { | |
| 355 | + return true; | |
| 356 | + } | |
| 357 | + } | |
| 358 | + | |
| 359 | + return false; | |
| 360 | + } | |
| 361 | + | |
| 362 | + /** | |
| 363 | + * Returns the PHP configuration file (php.ini) path. | |
| 364 | + * | |
| 365 | + * @return string|false php.ini file path | |
| 366 | + */ | |
| 367 | + public function getPhpIniConfigPath() | |
| 368 | + { | |
| 369 | + return get_cfg_var('cfg_file_path'); | |
| 370 | + } | |
| 371 | +} | |
| 372 | + | |
| 373 | +/** | |
| 374 | + * This class specifies all requirements and optional recommendations that | |
| 375 | + * are necessary to run the Symfony Standard Edition. | |
| 376 | + * | |
| 377 | + * @author Tobias Schultze <http://tobion.de> | |
| 378 | + * @author Fabien Potencier <fabien@symfony.com> | |
| 379 | + */ | |
| 380 | +class SymfonyRequirements extends RequirementCollection | |
| 381 | +{ | |
| 382 | + const LEGACY_REQUIRED_PHP_VERSION = '5.3.3'; | |
| 383 | + const REQUIRED_PHP_VERSION = '5.5.9'; | |
| 384 | + | |
| 385 | + /** | |
| 386 | + * Constructor that initializes the requirements. | |
| 387 | + */ | |
| 388 | + public function __construct() | |
| 389 | + { | |
| 390 | + /* mandatory requirements follow */ | |
| 391 | + | |
| 392 | + $installedPhpVersion = phpversion(); | |
| 393 | + $requiredPhpVersion = $this->getPhpRequiredVersion(); | |
| 394 | + | |
| 395 | + $this->addRecommendation( | |
| 396 | + $requiredPhpVersion, | |
| 397 | + 'Vendors should be installed in order to check all requirements.', | |
| 398 | + 'Run the <code>composer install</code> command.', | |
| 399 | + 'Run the "composer install" command.' | |
| 400 | + ); | |
| 401 | + | |
| 402 | + if (false !== $requiredPhpVersion) { | |
| 403 | + $this->addRequirement( | |
| 404 | + version_compare($installedPhpVersion, $requiredPhpVersion, '>='), | |
| 405 | + sprintf('PHP version must be at least %s (%s installed)', $requiredPhpVersion, $installedPhpVersion), | |
| 406 | + sprintf('You are running PHP version "<strong>%s</strong>", but Symfony needs at least PHP "<strong>%s</strong>" to run. | |
| 407 | + Before using Symfony, upgrade your PHP installation, preferably to the latest version.', | |
| 408 | + $installedPhpVersion, $requiredPhpVersion), | |
| 409 | + sprintf('Install PHP %s or newer (installed version is %s)', $requiredPhpVersion, $installedPhpVersion) | |
| 410 | + ); | |
| 411 | + } | |
| 412 | + | |
| 413 | + $this->addRequirement( | |
| 414 | + version_compare($installedPhpVersion, '5.3.16', '!='), | |
| 415 | + 'PHP version must not be 5.3.16 as Symfony won\'t work properly with it', | |
| 416 | + 'Install PHP 5.3.17 or newer (or downgrade to an earlier PHP version)' | |
| 417 | + ); | |
| 418 | + | |
| 419 | + $this->addRequirement( | |
| 420 | + is_dir(__DIR__.'/../vendor/composer'), | |
| 421 | + 'Vendor libraries must be installed', | |
| 422 | + 'Vendor libraries are missing. Install composer following instructions from <a href="http://getcomposer.org/">http://getcomposer.org/</a>. '. | |
| 423 | + 'Then run "<strong>php composer.phar install</strong>" to install them.' | |
| 424 | + ); | |
| 425 | + | |
| 426 | + $cacheDir = is_dir(__DIR__.'/../var/cache') ? __DIR__.'/../var/cache' : __DIR__.'/cache'; | |
| 427 | + | |
| 428 | + $this->addRequirement( | |
| 429 | + is_writable($cacheDir), | |
| 430 | + 'app/cache/ or var/cache/ directory must be writable', | |
| 431 | + 'Change the permissions of either "<strong>app/cache/</strong>" or "<strong>var/cache/</strong>" directory so that the web server can write into it.' | |
| 432 | + ); | |
| 433 | + | |
| 434 | + $logsDir = is_dir(__DIR__.'/../var/logs') ? __DIR__.'/../var/logs' : __DIR__.'/logs'; | |
| 435 | + | |
| 436 | + $this->addRequirement( | |
| 437 | + is_writable($logsDir), | |
| 438 | + 'app/logs/ or var/logs/ directory must be writable', | |
| 439 | + 'Change the permissions of either "<strong>app/logs/</strong>" or "<strong>var/logs/</strong>" directory so that the web server can write into it.' | |
| 440 | + ); | |
| 441 | + | |
| 442 | + $this->addPhpIniRequirement( | |
| 443 | + 'date.timezone', true, false, | |
| 444 | + 'date.timezone setting must be set', | |
| 445 | + 'Set the "<strong>date.timezone</strong>" setting in php.ini<a href="#phpini">*</a> (like Europe/Paris).' | |
| 446 | + ); | |
| 447 | + | |
| 448 | + if (false !== $requiredPhpVersion && version_compare($installedPhpVersion, $requiredPhpVersion, '>=')) { | |
| 449 | + $timezones = array(); | |
| 450 | + foreach (DateTimeZone::listAbbreviations() as $abbreviations) { | |
| 451 | + foreach ($abbreviations as $abbreviation) { | |
| 452 | + $timezones[$abbreviation['timezone_id']] = true; | |
| 453 | + } | |
| 454 | + } | |
| 455 | + | |
| 456 | + $this->addRequirement( | |
| 457 | + isset($timezones[@date_default_timezone_get()]), | |
| 458 | + sprintf('Configured default timezone "%s" must be supported by your installation of PHP', @date_default_timezone_get()), | |
| 459 | + '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>.' | |
| 460 | + ); | |
| 461 | + } | |
| 462 | + | |
| 463 | + $this->addRequirement( | |
| 464 | + function_exists('iconv'), | |
| 465 | + 'iconv() must be available', | |
| 466 | + 'Install and enable the <strong>iconv</strong> extension.' | |
| 467 | + ); | |
| 468 | + | |
| 469 | + $this->addRequirement( | |
| 470 | + function_exists('json_encode'), | |
| 471 | + 'json_encode() must be available', | |
| 472 | + 'Install and enable the <strong>JSON</strong> extension.' | |
| 473 | + ); | |
| 474 | + | |
| 475 | + $this->addRequirement( | |
| 476 | + function_exists('session_start'), | |
| 477 | + 'session_start() must be available', | |
| 478 | + 'Install and enable the <strong>session</strong> extension.' | |
| 479 | + ); | |
| 480 | + | |
| 481 | + $this->addRequirement( | |
| 482 | + function_exists('ctype_alpha'), | |
| 483 | + 'ctype_alpha() must be available', | |
| 484 | + 'Install and enable the <strong>ctype</strong> extension.' | |
| 485 | + ); | |
| 486 | + | |
| 487 | + $this->addRequirement( | |
| 488 | + function_exists('token_get_all'), | |
| 489 | + 'token_get_all() must be available', | |
| 490 | + 'Install and enable the <strong>Tokenizer</strong> extension.' | |
| 491 | + ); | |
| 492 | + | |
| 493 | + $this->addRequirement( | |
| 494 | + function_exists('simplexml_import_dom'), | |
| 495 | + 'simplexml_import_dom() must be available', | |
| 496 | + 'Install and enable the <strong>SimpleXML</strong> extension.' | |
| 497 | + ); | |
| 498 | + | |
| 499 | + if (function_exists('apc_store') && ini_get('apc.enabled')) { | |
| 500 | + if (version_compare($installedPhpVersion, '5.4.0', '>=')) { | |
| 501 | + $this->addRequirement( | |
| 502 | + version_compare(phpversion('apc'), '3.1.13', '>='), | |
| 503 | + 'APC version must be at least 3.1.13 when using PHP 5.4', | |
| 504 | + 'Upgrade your <strong>APC</strong> extension (3.1.13+).' | |
| 505 | + ); | |
| 506 | + } else { | |
| 507 | + $this->addRequirement( | |
| 508 | + version_compare(phpversion('apc'), '3.0.17', '>='), | |
| 509 | + 'APC version must be at least 3.0.17', | |
| 510 | + 'Upgrade your <strong>APC</strong> extension (3.0.17+).' | |
| 511 | + ); | |
| 512 | + } | |
| 513 | + } | |
| 514 | + | |
| 515 | + $this->addPhpIniRequirement('detect_unicode', false); | |
| 516 | + | |
| 517 | + if (extension_loaded('suhosin')) { | |
| 518 | + $this->addPhpIniRequirement( | |
| 519 | + 'suhosin.executor.include.whitelist', | |
| 520 | + create_function('$cfgValue', 'return false !== stripos($cfgValue, "phar");'), | |
| 521 | + false, | |
| 522 | + 'suhosin.executor.include.whitelist must be configured correctly in php.ini', | |
| 523 | + 'Add "<strong>phar</strong>" to <strong>suhosin.executor.include.whitelist</strong> in php.ini<a href="#phpini">*</a>.' | |
| 524 | + ); | |
| 525 | + } | |
| 526 | + | |
| 527 | + if (extension_loaded('xdebug')) { | |
| 528 | + $this->addPhpIniRequirement( | |
| 529 | + 'xdebug.show_exception_trace', false, true | |
| 530 | + ); | |
| 531 | + | |
| 532 | + $this->addPhpIniRequirement( | |
| 533 | + 'xdebug.scream', false, true | |
| 534 | + ); | |
| 535 | + | |
| 536 | + $this->addPhpIniRecommendation( | |
| 537 | + 'xdebug.max_nesting_level', | |
| 538 | + create_function('$cfgValue', 'return $cfgValue > 100;'), | |
| 539 | + true, | |
| 540 | + 'xdebug.max_nesting_level should be above 100 in php.ini', | |
| 541 | + 'Set "<strong>xdebug.max_nesting_level</strong>" to e.g. "<strong>250</strong>" in php.ini<a href="#phpini">*</a> to stop Xdebug\'s infinite recursion protection erroneously throwing a fatal error in your project.' | |
| 542 | + ); | |
| 543 | + } | |
| 544 | + | |
| 545 | + $pcreVersion = defined('PCRE_VERSION') ? (float) PCRE_VERSION : null; | |
| 546 | + | |
| 547 | + $this->addRequirement( | |
| 548 | + null !== $pcreVersion, | |
| 549 | + 'PCRE extension must be available', | |
| 550 | + 'Install the <strong>PCRE</strong> extension (version 8.0+).' | |
| 551 | + ); | |
| 552 | + | |
| 553 | + if (extension_loaded('mbstring')) { | |
| 554 | + $this->addPhpIniRequirement( | |
| 555 | + 'mbstring.func_overload', | |
| 556 | + create_function('$cfgValue', 'return (int) $cfgValue === 0;'), | |
| 557 | + true, | |
| 558 | + 'string functions should not be overloaded', | |
| 559 | + 'Set "<strong>mbstring.func_overload</strong>" to <strong>0</strong> in php.ini<a href="#phpini">*</a> to disable function overloading by the mbstring extension.' | |
| 560 | + ); | |
| 561 | + } | |
| 562 | + | |
| 563 | + /* optional recommendations follow */ | |
| 564 | + | |
| 565 | + if (file_exists(__DIR__.'/../vendor/composer')) { | |
| 566 | + require_once __DIR__.'/../vendor/autoload.php'; | |
| 567 | + | |
| 568 | + try { | |
| 569 | + $r = new ReflectionClass('Sensio\Bundle\DistributionBundle\SensioDistributionBundle'); | |
| 570 | + | |
| 571 | + $contents = file_get_contents(dirname($r->getFileName()).'/Resources/skeleton/app/SymfonyRequirements.php'); | |
| 572 | + } catch (ReflectionException $e) { | |
| 573 | + $contents = ''; | |
| 574 | + } | |
| 575 | + $this->addRecommendation( | |
| 576 | + file_get_contents(__FILE__) === $contents, | |
| 577 | + 'Requirements file should be up-to-date', | |
| 578 | + 'Your requirements file is outdated. Run composer install and re-check your configuration.' | |
| 579 | + ); | |
| 580 | + } | |
| 581 | + | |
| 582 | + $this->addRecommendation( | |
| 583 | + version_compare($installedPhpVersion, '5.3.4', '>='), | |
| 584 | + 'You should use at least PHP 5.3.4 due to PHP bug #52083 in earlier versions', | |
| 585 | + 'Your project might malfunction randomly due to PHP bug #52083 ("Notice: Trying to get property of non-object"). Install PHP 5.3.4 or newer.' | |
| 586 | + ); | |
| 587 | + | |
| 588 | + $this->addRecommendation( | |
| 589 | + version_compare($installedPhpVersion, '5.3.8', '>='), | |
| 590 | + 'When using annotations you should have at least PHP 5.3.8 due to PHP bug #55156', | |
| 591 | + 'Install PHP 5.3.8 or newer if your project uses annotations.' | |
| 592 | + ); | |
| 593 | + | |
| 594 | + $this->addRecommendation( | |
| 595 | + version_compare($installedPhpVersion, '5.4.0', '!='), | |
| 596 | + 'You should not use PHP 5.4.0 due to the PHP bug #61453', | |
| 597 | + 'Your project might not work properly due to the PHP bug #61453 ("Cannot dump definitions which have method calls"). Install PHP 5.4.1 or newer.' | |
| 598 | + ); | |
| 599 | + | |
| 600 | + $this->addRecommendation( | |
| 601 | + version_compare($installedPhpVersion, '5.4.11', '>='), | |
| 602 | + 'When using the logout handler from the Symfony Security Component, you should have at least PHP 5.4.11 due to PHP bug #63379 (as a workaround, you can also set invalidate_session to false in the security logout handler configuration)', | |
| 603 | + 'Install PHP 5.4.11 or newer if your project uses the logout handler from the Symfony Security Component.' | |
| 604 | + ); | |
| 605 | + | |
| 606 | + $this->addRecommendation( | |
| 607 | + (version_compare($installedPhpVersion, '5.3.18', '>=') && version_compare($installedPhpVersion, '5.4.0', '<')) | |
| 608 | + || | |
| 609 | + version_compare($installedPhpVersion, '5.4.8', '>='), | |
| 610 | + 'You should use PHP 5.3.18+ or PHP 5.4.8+ to always get nice error messages for fatal errors in the development environment due to PHP bug #61767/#60909', | |
| 611 | + 'Install PHP 5.3.18+ or PHP 5.4.8+ if you want nice error messages for all fatal errors in the development environment.' | |
| 612 | + ); | |
| 613 | + | |
| 614 | + if (null !== $pcreVersion) { | |
| 615 | + $this->addRecommendation( | |
| 616 | + $pcreVersion >= 8.0, | |
| 617 | + sprintf('PCRE extension should be at least version 8.0 (%s installed)', $pcreVersion), | |
| 618 | + '<strong>PCRE 8.0+</strong> is preconfigured in PHP since 5.3.2 but you are using an outdated version of it. Symfony probably works anyway but it is recommended to upgrade your PCRE extension.' | |
| 619 | + ); | |
| 620 | + } | |
| 621 | + | |
| 622 | + $this->addRecommendation( | |
| 623 | + class_exists('DomDocument'), | |
| 624 | + 'PHP-DOM and PHP-XML modules should be installed', | |
| 625 | + 'Install and enable the <strong>PHP-DOM</strong> and the <strong>PHP-XML</strong> modules.' | |
| 626 | + ); | |
| 627 | + | |
| 628 | + $this->addRecommendation( | |
| 629 | + function_exists('mb_strlen'), | |
| 630 | + 'mb_strlen() should be available', | |
| 631 | + 'Install and enable the <strong>mbstring</strong> extension.' | |
| 632 | + ); | |
| 633 | + | |
| 634 | + $this->addRecommendation( | |
| 635 | + function_exists('iconv'), | |
| 636 | + 'iconv() should be available', | |
| 637 | + 'Install and enable the <strong>iconv</strong> extension.' | |
| 638 | + ); | |
| 639 | + | |
| 640 | + $this->addRecommendation( | |
| 641 | + function_exists('utf8_decode'), | |
| 642 | + 'utf8_decode() should be available', | |
| 643 | + 'Install and enable the <strong>XML</strong> extension.' | |
| 644 | + ); | |
| 645 | + | |
| 646 | + $this->addRecommendation( | |
| 647 | + function_exists('filter_var'), | |
| 648 | + 'filter_var() should be available', | |
| 649 | + 'Install and enable the <strong>filter</strong> extension.' | |
| 650 | + ); | |
| 651 | + | |
| 652 | + if (!defined('PHP_WINDOWS_VERSION_BUILD')) { | |
| 653 | + $this->addRecommendation( | |
| 654 | + function_exists('posix_isatty'), | |
| 655 | + 'posix_isatty() should be available', | |
| 656 | + 'Install and enable the <strong>php_posix</strong> extension (used to colorize the CLI output).' | |
| 657 | + ); | |
| 658 | + } | |
| 659 | + | |
| 660 | + $this->addRecommendation( | |
| 661 | + extension_loaded('intl'), | |
| 662 | + 'intl extension should be available', | |
| 663 | + 'Install and enable the <strong>intl</strong> extension (used for validators).' | |
| 664 | + ); | |
| 665 | + | |
| 666 | + if (extension_loaded('intl')) { | |
| 667 | + // in some WAMP server installations, new Collator() returns null | |
| 668 | + $this->addRecommendation( | |
| 669 | + null !== new Collator('fr_FR'), | |
| 670 | + 'intl extension should be correctly configured', | |
| 671 | + 'The intl extension does not behave properly. This problem is typical on PHP 5.3.X x64 WIN builds.' | |
| 672 | + ); | |
| 673 | + | |
| 674 | + // check for compatible ICU versions (only done when you have the intl extension) | |
| 675 | + if (defined('INTL_ICU_VERSION')) { | |
| 676 | + $version = INTL_ICU_VERSION; | |
| 677 | + } else { | |
| 678 | + $reflector = new ReflectionExtension('intl'); | |
| 679 | + | |
| 680 | + ob_start(); | |
| 681 | + $reflector->info(); | |
| 682 | + $output = strip_tags(ob_get_clean()); | |
| 683 | + | |
| 684 | + preg_match('/^ICU version +(?:=> )?(.*)$/m', $output, $matches); | |
| 685 | + $version = $matches[1]; | |
| 686 | + } | |
| 687 | + | |
| 688 | + $this->addRecommendation( | |
| 689 | + version_compare($version, '4.0', '>='), | |
| 690 | + 'intl ICU version should be at least 4+', | |
| 691 | + 'Upgrade your <strong>intl</strong> extension with a newer ICU version (4+).' | |
| 692 | + ); | |
| 693 | + | |
| 694 | + $this->addPhpIniRecommendation( | |
| 695 | + 'intl.error_level', | |
| 696 | + create_function('$cfgValue', 'return (int) $cfgValue === 0;'), | |
| 697 | + true, | |
| 698 | + 'intl.error_level should be 0 in php.ini', | |
| 699 | + 'Set "<strong>intl.error_level</strong>" to "<strong>0</strong>" in php.ini<a href="#phpini">*</a> to inhibit the messages when an error occurs in ICU functions.' | |
| 700 | + ); | |
| 701 | + } | |
| 702 | + | |
| 703 | + $accelerator = | |
| 704 | + (extension_loaded('eaccelerator') && ini_get('eaccelerator.enable')) | |
| 705 | + || | |
| 706 | + (extension_loaded('apc') && ini_get('apc.enabled')) | |
| 707 | + || | |
| 708 | + (extension_loaded('Zend Optimizer+') && ini_get('zend_optimizerplus.enable')) | |
| 709 | + || | |
| 710 | + (extension_loaded('Zend OPcache') && ini_get('opcache.enable')) | |
| 711 | + || | |
| 712 | + (extension_loaded('xcache') && ini_get('xcache.cacher')) | |
| 713 | + || | |
| 714 | + (extension_loaded('wincache') && ini_get('wincache.ocenabled')) | |
| 715 | + ; | |
| 716 | + | |
| 717 | + $this->addRecommendation( | |
| 718 | + $accelerator, | |
| 719 | + 'a PHP accelerator should be installed', | |
| 720 | + 'Install and/or enable a <strong>PHP accelerator</strong> (highly recommended).' | |
| 721 | + ); | |
| 722 | + | |
| 723 | + if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { | |
| 724 | + $this->addRecommendation( | |
| 725 | + $this->getRealpathCacheSize() >= 5 * 1024 * 1024, | |
| 726 | + 'realpath_cache_size should be at least 5M in php.ini', | |
| 727 | + 'Setting "<strong>realpath_cache_size</strong>" to e.g. "<strong>5242880</strong>" or "<strong>5M</strong>" in php.ini<a href="#phpini">*</a> may improve performance on Windows significantly in some cases.' | |
| 728 | + ); | |
| 729 | + } | |
| 730 | + | |
| 731 | + $this->addPhpIniRecommendation('short_open_tag', false); | |
| 732 | + | |
| 733 | + $this->addPhpIniRecommendation('magic_quotes_gpc', false, true); | |
| 734 | + | |
| 735 | + $this->addPhpIniRecommendation('register_globals', false, true); | |
| 736 | + | |
| 737 | + $this->addPhpIniRecommendation('session.auto_start', false); | |
| 738 | + | |
| 739 | + $this->addRecommendation( | |
| 740 | + class_exists('PDO'), | |
| 741 | + 'PDO should be installed', | |
| 742 | + 'Install <strong>PDO</strong> (mandatory for Doctrine).' | |
| 743 | + ); | |
| 744 | + | |
| 745 | + if (class_exists('PDO')) { | |
| 746 | + $drivers = PDO::getAvailableDrivers(); | |
| 747 | + $this->addRecommendation( | |
| 748 | + count($drivers) > 0, | |
| 749 | + sprintf('PDO should have some drivers installed (currently available: %s)', count($drivers) ? implode(', ', $drivers) : 'none'), | |
| 750 | + 'Install <strong>PDO drivers</strong> (mandatory for Doctrine).' | |
| 751 | + ); | |
| 752 | + } | |
| 753 | + } | |
| 754 | + | |
| 755 | + /** | |
| 756 | + * Loads realpath_cache_size from php.ini and converts it to int. | |
| 757 | + * | |
| 758 | + * (e.g. 16k is converted to 16384 int) | |
| 759 | + * | |
| 760 | + * @return int | |
| 761 | + */ | |
| 762 | + protected function getRealpathCacheSize() | |
| 763 | + { | |
| 764 | + $size = ini_get('realpath_cache_size'); | |
| 765 | + $size = trim($size); | |
| 766 | + $unit = ''; | |
| 767 | + if (!ctype_digit($size)) { | |
| 768 | + $unit = strtolower(substr($size, -1, 1)); | |
| 769 | + $size = (int) substr($size, 0, -1); | |
| 770 | + } | |
| 771 | + switch ($unit) { | |
| 772 | + case 'g': | |
| 773 | + return $size * 1024 * 1024 * 1024; | |
| 774 | + case 'm': | |
| 775 | + return $size * 1024 * 1024; | |
| 776 | + case 'k': | |
| 777 | + return $size * 1024; | |
| 778 | + default: | |
| 779 | + return (int) $size; | |
| 780 | + } | |
| 781 | + } | |
| 782 | + | |
| 783 | + /** | |
| 784 | + * Defines PHP required version from Symfony version. | |
| 785 | + * | |
| 786 | + * @return string|false The PHP required version or false if it could not be guessed | |
| 787 | + */ | |
| 788 | + protected function getPhpRequiredVersion() | |
| 789 | + { | |
| 790 | + if (!file_exists($path = __DIR__.'/../composer.lock')) { | |
| 791 | + return false; | |
| 792 | + } | |
| 793 | + | |
| 794 | + $composerLock = json_decode(file_get_contents($path), true); | |
| 795 | + foreach ($composerLock['packages'] as $package) { | |
| 796 | + $name = $package['name']; | |
| 797 | + if ('symfony/symfony' !== $name && 'symfony/http-kernel' !== $name) { | |
| 798 | + continue; | |
| 799 | + } | |
| 800 | + | |
| 801 | + return (int) $package['version'][1] > 2 ? self::REQUIRED_PHP_VERSION : self::LEGACY_REQUIRED_PHP_VERSION; | |
| 802 | + } | |
| 803 | + | |
| 804 | + return false; | |
| 805 | + } | |
| 806 | +} | ... | ... |
app/autoload.php
| ... | ... | @@ -0,0 +1,11 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +use Doctrine\Common\Annotations\AnnotationRegistry; | |
| 4 | +use Composer\Autoload\ClassLoader; | |
| 5 | + | |
| 6 | +/** @var ClassLoader $loader */ | |
| 7 | +$loader = require __DIR__.'/../vendor/autoload.php'; | |
| 8 | + | |
| 9 | +AnnotationRegistry::registerLoader(array($loader, 'loadClass')); | |
| 10 | + | |
| 11 | +return $loader; | ... | ... |
app/cache/.gitkeep
app/check.php
| ... | ... | @@ -0,0 +1,141 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +require_once dirname(__FILE__).'/SymfonyRequirements.php'; | |
| 4 | + | |
| 5 | +$lineSize = 70; | |
| 6 | +$symfonyRequirements = new SymfonyRequirements(); | |
| 7 | +$iniPath = $symfonyRequirements->getPhpIniConfigPath(); | |
| 8 | + | |
| 9 | +echo_title('Symfony Requirements Checker'); | |
| 10 | + | |
| 11 | +echo '> PHP is using the following php.ini file:'.PHP_EOL; | |
| 12 | +if ($iniPath) { | |
| 13 | + echo_style('green', ' '.$iniPath); | |
| 14 | +} else { | |
| 15 | + echo_style('yellow', ' WARNING: No configuration file (php.ini) used by PHP!'); | |
| 16 | +} | |
| 17 | + | |
| 18 | +echo PHP_EOL.PHP_EOL; | |
| 19 | + | |
| 20 | +echo '> Checking Symfony requirements:'.PHP_EOL.' '; | |
| 21 | + | |
| 22 | +$messages = array(); | |
| 23 | +foreach ($symfonyRequirements->getRequirements() as $req) { | |
| 24 | + if ($helpText = get_error_message($req, $lineSize)) { | |
| 25 | + echo_style('red', 'E'); | |
| 26 | + $messages['error'][] = $helpText; | |
| 27 | + } else { | |
| 28 | + echo_style('green', '.'); | |
| 29 | + } | |
| 30 | +} | |
| 31 | + | |
| 32 | +$checkPassed = empty($messages['error']); | |
| 33 | + | |
| 34 | +foreach ($symfonyRequirements->getRecommendations() as $req) { | |
| 35 | + if ($helpText = get_error_message($req, $lineSize)) { | |
| 36 | + echo_style('yellow', 'W'); | |
| 37 | + $messages['warning'][] = $helpText; | |
| 38 | + } else { | |
| 39 | + echo_style('green', '.'); | |
| 40 | + } | |
| 41 | +} | |
| 42 | + | |
| 43 | +if ($checkPassed) { | |
| 44 | + echo_block('success', 'OK', 'Your system is ready to run Symfony projects'); | |
| 45 | +} else { | |
| 46 | + echo_block('error', 'ERROR', 'Your system is not ready to run Symfony projects'); | |
| 47 | + | |
| 48 | + echo_title('Fix the following mandatory requirements', 'red'); | |
| 49 | + | |
| 50 | + foreach ($messages['error'] as $helpText) { | |
| 51 | + echo ' * '.$helpText.PHP_EOL; | |
| 52 | + } | |
| 53 | +} | |
| 54 | + | |
| 55 | +if (!empty($messages['warning'])) { | |
| 56 | + echo_title('Optional recommendations to improve your setup', 'yellow'); | |
| 57 | + | |
| 58 | + foreach ($messages['warning'] as $helpText) { | |
| 59 | + echo ' * '.$helpText.PHP_EOL; | |
| 60 | + } | |
| 61 | +} | |
| 62 | + | |
| 63 | +echo PHP_EOL; | |
| 64 | +echo_style('title', 'Note'); | |
| 65 | +echo ' The command console could use a different php.ini file'.PHP_EOL; | |
| 66 | +echo_style('title', '~~~~'); | |
| 67 | +echo ' than the one used with your web server. To be on the'.PHP_EOL; | |
| 68 | +echo ' safe side, please check the requirements from your web'.PHP_EOL; | |
| 69 | +echo ' server using the '; | |
| 70 | +echo_style('yellow', 'web/config.php'); | |
| 71 | +echo ' script.'.PHP_EOL; | |
| 72 | +echo PHP_EOL; | |
| 73 | + | |
| 74 | +exit($checkPassed ? 0 : 1); | |
| 75 | + | |
| 76 | +function get_error_message(Requirement $requirement, $lineSize) | |
| 77 | +{ | |
| 78 | + if ($requirement->isFulfilled()) { | |
| 79 | + return; | |
| 80 | + } | |
| 81 | + | |
| 82 | + $errorMessage = wordwrap($requirement->getTestMessage(), $lineSize - 3, PHP_EOL.' ').PHP_EOL; | |
| 83 | + $errorMessage .= ' > '.wordwrap($requirement->getHelpText(), $lineSize - 5, PHP_EOL.' > ').PHP_EOL; | |
| 84 | + | |
| 85 | + return $errorMessage; | |
| 86 | +} | |
| 87 | + | |
| 88 | +function echo_title($title, $style = null) | |
| 89 | +{ | |
| 90 | + $style = $style ?: 'title'; | |
| 91 | + | |
| 92 | + echo PHP_EOL; | |
| 93 | + echo_style($style, $title.PHP_EOL); | |
| 94 | + echo_style($style, str_repeat('~', strlen($title)).PHP_EOL); | |
| 95 | + echo PHP_EOL; | |
| 96 | +} | |
| 97 | + | |
| 98 | +function echo_style($style, $message) | |
| 99 | +{ | |
| 100 | + // ANSI color codes | |
| 101 | + $styles = array( | |
| 102 | + 'reset' => "\033[0m", | |
| 103 | + 'red' => "\033[31m", | |
| 104 | + 'green' => "\033[32m", | |
| 105 | + 'yellow' => "\033[33m", | |
| 106 | + 'error' => "\033[37;41m", | |
| 107 | + 'success' => "\033[37;42m", | |
| 108 | + 'title' => "\033[34m", | |
| 109 | + ); | |
| 110 | + $supports = has_color_support(); | |
| 111 | + | |
| 112 | + echo($supports ? $styles[$style] : '').$message.($supports ? $styles['reset'] : ''); | |
| 113 | +} | |
| 114 | + | |
| 115 | +function echo_block($style, $title, $message) | |
| 116 | +{ | |
| 117 | + $message = ' '.trim($message).' '; | |
| 118 | + $width = strlen($message); | |
| 119 | + | |
| 120 | + echo PHP_EOL.PHP_EOL; | |
| 121 | + | |
| 122 | + echo_style($style, str_repeat(' ', $width).PHP_EOL); | |
| 123 | + echo_style($style, str_pad(' ['.$title.']', $width, ' ', STR_PAD_RIGHT).PHP_EOL); | |
| 124 | + echo_style($style, str_pad($message, $width, ' ', STR_PAD_RIGHT).PHP_EOL); | |
| 125 | + echo_style($style, str_repeat(' ', $width).PHP_EOL); | |
| 126 | +} | |
| 127 | + | |
| 128 | +function has_color_support() | |
| 129 | +{ | |
| 130 | + static $support; | |
| 131 | + | |
| 132 | + if (null === $support) { | |
| 133 | + if (DIRECTORY_SEPARATOR == '\\') { | |
| 134 | + $support = false !== getenv('ANSICON') || 'ON' === getenv('ConEmuANSI'); | |
| 135 | + } else { | |
| 136 | + $support = function_exists('posix_isatty') && @posix_isatty(STDOUT); | |
| 137 | + } | |
| 138 | + } | |
| 139 | + | |
| 140 | + return $support; | |
| 141 | +} | ... | ... |
app/config/config.yml
| ... | ... | @@ -0,0 +1,67 @@ |
| 1 | +imports: | |
| 2 | + - { resource: parameters.yml } | |
| 3 | + - { resource: security.yml } | |
| 4 | + - { resource: services.yml } | |
| 5 | + - { resource: "@UBVPracticaBundle/Resources/config/services.yml" } | |
| 6 | + | |
| 7 | +# Put parameters here that don't need to change on each machine where the app is deployed | |
| 8 | +# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration | |
| 9 | +parameters: | |
| 10 | + locale: en | |
| 11 | + | |
| 12 | +framework: | |
| 13 | + #esi: ~ | |
| 14 | + #translator: { fallbacks: ['%locale%'] } | |
| 15 | + secret: '%secret%' | |
| 16 | + router: | |
| 17 | + resource: '%kernel.root_dir%/config/routing.yml' | |
| 18 | + strict_requirements: ~ | |
| 19 | + form: ~ | |
| 20 | + csrf_protection: ~ | |
| 21 | + validation: { enable_annotations: true } | |
| 22 | + #serializer: { enable_annotations: true } | |
| 23 | + templating: | |
| 24 | + engines: ['twig'] | |
| 25 | + default_locale: '%locale%' | |
| 26 | + trusted_hosts: ~ | |
| 27 | + trusted_proxies: ~ | |
| 28 | + session: | |
| 29 | + # handler_id set to null will use default session handler from php.ini | |
| 30 | + handler_id: ~ | |
| 31 | + fragments: ~ | |
| 32 | + http_method_override: true | |
| 33 | + | |
| 34 | +# Twig Configuration | |
| 35 | +twig: | |
| 36 | + debug: '%kernel.debug%' | |
| 37 | + strict_variables: '%kernel.debug%' | |
| 38 | + | |
| 39 | +# Doctrine Configuration | |
| 40 | +doctrine: | |
| 41 | + dbal: | |
| 42 | + driver: pdo_mysql | |
| 43 | + host: '%database_host%' | |
| 44 | + port: '%database_port%' | |
| 45 | + dbname: '%database_name%' | |
| 46 | + user: '%database_user%' | |
| 47 | + password: '%database_password%' | |
| 48 | + charset: UTF8 | |
| 49 | + # if using pdo_sqlite as your database driver: | |
| 50 | + # 1. add the path in parameters.yml | |
| 51 | + # e.g. database_path: '%kernel.root_dir%/data/data.db3' | |
| 52 | + # 2. Uncomment database_path in parameters.yml.dist | |
| 53 | + # 3. Uncomment next line: | |
| 54 | + #path: '%database_path%' | |
| 55 | + | |
| 56 | + orm: | |
| 57 | + auto_generate_proxy_classes: '%kernel.debug%' | |
| 58 | + naming_strategy: doctrine.orm.naming_strategy.underscore | |
| 59 | + auto_mapping: true | |
| 60 | + | |
| 61 | +# Swiftmailer Configuration | |
| 62 | +swiftmailer: | |
| 63 | + transport: '%mailer_transport%' | |
| 64 | + host: '%mailer_host%' | |
| 65 | + username: '%mailer_user%' | |
| 66 | + password: '%mailer_password%' | |
| 67 | + spool: { type: memory } | ... | ... |
app/config/config_dev.yml
| ... | ... | @@ -0,0 +1,34 @@ |
| 1 | +imports: | |
| 2 | + - { resource: config.yml } | |
| 3 | + | |
| 4 | +framework: | |
| 5 | + router: | |
| 6 | + resource: '%kernel.root_dir%/config/routing_dev.yml' | |
| 7 | + strict_requirements: true | |
| 8 | + profiler: { only_exceptions: false } | |
| 9 | + | |
| 10 | +web_profiler: | |
| 11 | + toolbar: true | |
| 12 | + intercept_redirects: false | |
| 13 | + | |
| 14 | +monolog: | |
| 15 | + handlers: | |
| 16 | + main: | |
| 17 | + type: stream | |
| 18 | + path: '%kernel.logs_dir%/%kernel.environment%.log' | |
| 19 | + level: debug | |
| 20 | + channels: ['!event'] | |
| 21 | + console: | |
| 22 | + type: console | |
| 23 | + channels: ['!event', '!doctrine'] | |
| 24 | + # uncomment to get logging in your browser | |
| 25 | + # you may have to allow bigger header sizes in your Web server configuration | |
| 26 | + #firephp: | |
| 27 | + # type: firephp | |
| 28 | + # level: info | |
| 29 | + #chromephp: | |
| 30 | + # type: chromephp | |
| 31 | + # level: info | |
| 32 | + | |
| 33 | +#swiftmailer: | |
| 34 | +# delivery_addresses: ['me@example.com'] | ... | ... |
app/config/config_prod.yml
| ... | ... | @@ -0,0 +1,27 @@ |
| 1 | +imports: | |
| 2 | + - { resource: config.yml } | |
| 3 | + | |
| 4 | +#framework: | |
| 5 | +# validation: | |
| 6 | +# cache: validator.mapping.cache.doctrine.apc | |
| 7 | +# serializer: | |
| 8 | +# cache: serializer.mapping.cache.apc | |
| 9 | + | |
| 10 | +#doctrine: | |
| 11 | +# orm: | |
| 12 | +# metadata_cache_driver: apc | |
| 13 | +# result_cache_driver: apc | |
| 14 | +# query_cache_driver: apc | |
| 15 | + | |
| 16 | +monolog: | |
| 17 | + handlers: | |
| 18 | + main: | |
| 19 | + type: fingers_crossed | |
| 20 | + action_level: error | |
| 21 | + handler: nested | |
| 22 | + nested: | |
| 23 | + type: stream | |
| 24 | + path: '%kernel.logs_dir%/%kernel.environment%.log' | |
| 25 | + level: debug | |
| 26 | + console: | |
| 27 | + type: console | ... | ... |
app/config/config_test.yml
| ... | ... | @@ -0,0 +1,16 @@ |
| 1 | +imports: | |
| 2 | + - { resource: config_dev.yml } | |
| 3 | + | |
| 4 | +framework: | |
| 5 | + test: ~ | |
| 6 | + session: | |
| 7 | + storage_id: session.storage.mock_file | |
| 8 | + profiler: | |
| 9 | + collect: false | |
| 10 | + | |
| 11 | +web_profiler: | |
| 12 | + toolbar: false | |
| 13 | + intercept_redirects: false | |
| 14 | + | |
| 15 | +swiftmailer: | |
| 16 | + disable_delivery: true | ... | ... |
app/config/parameters.yml.dist
| ... | ... | @@ -0,0 +1,19 @@ |
| 1 | +# This file is a "template" of what your parameters.yml file should look like | |
| 2 | +# Set parameters here that may be different on each deployment target of the app, e.g. development, staging, production. | |
| 3 | +# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration | |
| 4 | +parameters: | |
| 5 | + database_host: 127.0.0.1 | |
| 6 | + database_port: ~ | |
| 7 | + database_name: symfony | |
| 8 | + database_user: root | |
| 9 | + database_password: ~ | |
| 10 | + # You should uncomment this if you want to use pdo_sqlite | |
| 11 | + #database_path: "%kernel.root_dir%/data.db3" | |
| 12 | + | |
| 13 | + mailer_transport: smtp | |
| 14 | + mailer_host: 127.0.0.1 | |
| 15 | + mailer_user: ~ | |
| 16 | + mailer_password: ~ | |
| 17 | + | |
| 18 | + # A secret key that's used to generate certain security-related tokens | |
| 19 | + secret: ThisTokenIsNotSoSecretChangeIt | ... | ... |
app/config/routing.yml
app/config/routing_dev.yml
| ... | ... | @@ -0,0 +1,14 @@ |
| 1 | +_wdt: | |
| 2 | + resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml' | |
| 3 | + prefix: /_wdt | |
| 4 | + | |
| 5 | +_profiler: | |
| 6 | + resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml' | |
| 7 | + prefix: /_profiler | |
| 8 | + | |
| 9 | +_errors: | |
| 10 | + resource: '@TwigBundle/Resources/config/routing/errors.xml' | |
| 11 | + prefix: /_error | |
| 12 | + | |
| 13 | +_main: | |
| 14 | + resource: routing.yml | ... | ... |
app/config/security.yml
| ... | ... | @@ -0,0 +1,24 @@ |
| 1 | +# To get started with security, check out the documentation: | |
| 2 | +# https://symfony.com/doc/current/security.html | |
| 3 | +security: | |
| 4 | + | |
| 5 | + # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded | |
| 6 | + providers: | |
| 7 | + in_memory: | |
| 8 | + memory: ~ | |
| 9 | + | |
| 10 | + firewalls: | |
| 11 | + # disables authentication for assets and the profiler, adapt it according to your needs | |
| 12 | + dev: | |
| 13 | + pattern: ^/(_(profiler|wdt)|css|images|js)/ | |
| 14 | + security: false | |
| 15 | + | |
| 16 | + main: | |
| 17 | + anonymous: ~ | |
| 18 | + # activate different ways to authenticate | |
| 19 | + | |
| 20 | + # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate | |
| 21 | + #http_basic: ~ | |
| 22 | + | |
| 23 | + # https://symfony.com/doc/current/security/form_login_setup.html | |
| 24 | + #form_login: ~ | ... | ... |
app/config/services.yml
| ... | ... | @@ -0,0 +1,9 @@ |
| 1 | +# Learn more about services, parameters and containers at | |
| 2 | +# https://symfony.com/doc/current/service_container.html | |
| 3 | +parameters: | |
| 4 | + #parameter_name: value | |
| 5 | + | |
| 6 | +services: | |
| 7 | + #service_name: | |
| 8 | + # class: AppBundle\Directory\ClassName | |
| 9 | + # arguments: ['@another_service_name', 'plain_value', '%parameter_name%'] | ... | ... |
app/console
| ... | ... | @@ -0,0 +1,27 @@ |
| 1 | +#!/usr/bin/env php | |
| 2 | +<?php | |
| 3 | + | |
| 4 | +use Symfony\Bundle\FrameworkBundle\Console\Application; | |
| 5 | +use Symfony\Component\Console\Input\ArgvInput; | |
| 6 | +use Symfony\Component\Debug\Debug; | |
| 7 | + | |
| 8 | +// if you don't want to setup permissions the proper way, just uncomment the following PHP line | |
| 9 | +// read https://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup | |
| 10 | +// for more information | |
| 11 | +//umask(0000); | |
| 12 | + | |
| 13 | +set_time_limit(0); | |
| 14 | + | |
| 15 | +require __DIR__.'/autoload.php'; | |
| 16 | + | |
| 17 | +$input = new ArgvInput(); | |
| 18 | +$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev'); | |
| 19 | +$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod'; | |
| 20 | + | |
| 21 | +if ($debug) { | |
| 22 | + Debug::enable(); | |
| 23 | +} | |
| 24 | + | |
| 25 | +$kernel = new AppKernel($env, $debug); | |
| 26 | +$application = new Application($kernel); | |
| 27 | +$application->run($input); | ... | ... |
app/logs/.gitkeep
app/phpunit.xml.dist
| ... | ... | @@ -0,0 +1,38 @@ |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | + | |
| 3 | +<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html --> | |
| 4 | +<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| 5 | + xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd" | |
| 6 | + backupGlobals="false" | |
| 7 | + colors="true" | |
| 8 | + bootstrap="autoload.php" | |
| 9 | +> | |
| 10 | + <php> | |
| 11 | + <ini name="error_reporting" value="-1" /> | |
| 12 | + <!-- | |
| 13 | + <server name="KERNEL_DIR" value="/path/to/your/app/" /> | |
| 14 | + --> | |
| 15 | + </php> | |
| 16 | + | |
| 17 | + <testsuites> | |
| 18 | + <testsuite name="Project Test Suite"> | |
| 19 | + <directory>../src/*/*Bundle/Tests</directory> | |
| 20 | + <directory>../src/*/Bundle/*Bundle/Tests</directory> | |
| 21 | + <directory>../src/*Bundle/Tests</directory> | |
| 22 | + </testsuite> | |
| 23 | + </testsuites> | |
| 24 | + | |
| 25 | + <filter> | |
| 26 | + <whitelist> | |
| 27 | + <directory>../src</directory> | |
| 28 | + <exclude> | |
| 29 | + <directory>../src/*Bundle/Resources</directory> | |
| 30 | + <directory>../src/*Bundle/Tests</directory> | |
| 31 | + <directory>../src/*/*Bundle/Resources</directory> | |
| 32 | + <directory>../src/*/*Bundle/Tests</directory> | |
| 33 | + <directory>../src/*/Bundle/*Bundle/Resources</directory> | |
| 34 | + <directory>../src/*/Bundle/*Bundle/Tests</directory> | |
| 35 | + </exclude> | |
| 36 | + </whitelist> | |
| 37 | + </filter> | |
| 38 | +</phpunit> | ... | ... |
composer.json
| ... | ... | @@ -0,0 +1,64 @@ |
| 1 | +{ | |
| 2 | + "name": "egonzalezf/practica", | |
| 3 | + "license": "proprietary", | |
| 4 | + "type": "project", | |
| 5 | + "autoload": { | |
| 6 | + "psr-4": { | |
| 7 | + "": "src/" | |
| 8 | + }, | |
| 9 | + "classmap": [ | |
| 10 | + "app/AppKernel.php", | |
| 11 | + "app/AppCache.php" | |
| 12 | + ] | |
| 13 | + }, | |
| 14 | + "autoload-dev": { | |
| 15 | + "files": [ | |
| 16 | + "vendor/symfony/symfony/src/Symfony/Component/VarDumper/Resources/functions/dump.php" | |
| 17 | + ] | |
| 18 | + }, | |
| 19 | + "require": { | |
| 20 | + "php": ">=5.3.9", | |
| 21 | + "doctrine/doctrine-bundle": "~1.4", | |
| 22 | + "doctrine/orm": "^2.4.8", | |
| 23 | + "incenteev/composer-parameter-handler": "~2.0", | |
| 24 | + "sensio/distribution-bundle": "~4.0", | |
| 25 | + "sensio/framework-extra-bundle": "^3.0.2", | |
| 26 | + "symfony/monolog-bundle": "^3.0.2", | |
| 27 | + "symfony/swiftmailer-bundle": "~2.3,>=2.3.10", | |
| 28 | + "symfony/symfony": "2.8.*", | |
| 29 | + "twig/twig": "^1.0||^2.0" | |
| 30 | + }, | |
| 31 | + "require-dev": { | |
| 32 | + "sensio/generator-bundle": "~3.0", | |
| 33 | + "symfony/phpunit-bridge": "~2.7" | |
| 34 | + }, | |
| 35 | + "scripts": { | |
| 36 | + "symfony-scripts": [ | |
| 37 | + "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", | |
| 38 | + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", | |
| 39 | + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", | |
| 40 | + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", | |
| 41 | + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile", | |
| 42 | + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget" | |
| 43 | + ], | |
| 44 | + "post-install-cmd": [ | |
| 45 | + "@symfony-scripts" | |
| 46 | + ], | |
| 47 | + "post-update-cmd": [ | |
| 48 | + "@symfony-scripts" | |
| 49 | + ] | |
| 50 | + }, | |
| 51 | + "config": { | |
| 52 | + "bin-dir": "bin", | |
| 53 | + "sort-packages": true | |
| 54 | + }, | |
| 55 | + "extra": { | |
| 56 | + "symfony-app-dir": "app", | |
| 57 | + "symfony-web-dir": "web", | |
| 58 | + "symfony-assets-install": "relative", | |
| 59 | + "incenteev-parameters": { | |
| 60 | + "file": "app/config/parameters.yml" | |
| 61 | + }, | |
| 62 | + "branch-alias": null | |
| 63 | + } | |
| 64 | +} | |
| 0 | 65 | \ No newline at end of file | ... | ... |
composer.lock
| ... | ... | @@ -0,0 +1,2291 @@ |
| 1 | +{ | |
| 2 | + "_readme": [ | |
| 3 | + "This file locks the dependencies of your project to a known state", | |
| 4 | + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", | |
| 5 | + "This file is @generated automatically" | |
| 6 | + ], | |
| 7 | + "content-hash": "e6c3f22ccb31b0ca5a5bedbf3c4b8096", | |
| 8 | + "packages": [ | |
| 9 | + { | |
| 10 | + "name": "doctrine/annotations", | |
| 11 | + "version": "v1.4.0", | |
| 12 | + "source": { | |
| 13 | + "type": "git", | |
| 14 | + "url": "https://github.com/doctrine/annotations.git", | |
| 15 | + "reference": "54cacc9b81758b14e3ce750f205a393d52339e97" | |
| 16 | + }, | |
| 17 | + "dist": { | |
| 18 | + "type": "zip", | |
| 19 | + "url": "https://api.github.com/repos/doctrine/annotations/zipball/54cacc9b81758b14e3ce750f205a393d52339e97", | |
| 20 | + "reference": "54cacc9b81758b14e3ce750f205a393d52339e97", | |
| 21 | + "shasum": "" | |
| 22 | + }, | |
| 23 | + "require": { | |
| 24 | + "doctrine/lexer": "1.*", | |
| 25 | + "php": "^5.6 || ^7.0" | |
| 26 | + }, | |
| 27 | + "require-dev": { | |
| 28 | + "doctrine/cache": "1.*", | |
| 29 | + "phpunit/phpunit": "^5.7" | |
| 30 | + }, | |
| 31 | + "type": "library", | |
| 32 | + "extra": { | |
| 33 | + "branch-alias": { | |
| 34 | + "dev-master": "1.4.x-dev" | |
| 35 | + } | |
| 36 | + }, | |
| 37 | + "autoload": { | |
| 38 | + "psr-4": { | |
| 39 | + "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" | |
| 40 | + } | |
| 41 | + }, | |
| 42 | + "notification-url": "https://packagist.org/downloads/", | |
| 43 | + "license": [ | |
| 44 | + "MIT" | |
| 45 | + ], | |
| 46 | + "authors": [ | |
| 47 | + { | |
| 48 | + "name": "Roman Borschel", | |
| 49 | + "email": "roman@code-factory.org" | |
| 50 | + }, | |
| 51 | + { | |
| 52 | + "name": "Benjamin Eberlei", | |
| 53 | + "email": "kontakt@beberlei.de" | |
| 54 | + }, | |
| 55 | + { | |
| 56 | + "name": "Guilherme Blanco", | |
| 57 | + "email": "guilhermeblanco@gmail.com" | |
| 58 | + }, | |
| 59 | + { | |
| 60 | + "name": "Jonathan Wage", | |
| 61 | + "email": "jonwage@gmail.com" | |
| 62 | + }, | |
| 63 | + { | |
| 64 | + "name": "Johannes Schmitt", | |
| 65 | + "email": "schmittjoh@gmail.com" | |
| 66 | + } | |
| 67 | + ], | |
| 68 | + "description": "Docblock Annotations Parser", | |
| 69 | + "homepage": "http://www.doctrine-project.org", | |
| 70 | + "keywords": [ | |
| 71 | + "annotations", | |
| 72 | + "docblock", | |
| 73 | + "parser" | |
| 74 | + ], | |
| 75 | + "time": "2017-02-24T16:22:25+00:00" | |
| 76 | + }, | |
| 77 | + { | |
| 78 | + "name": "doctrine/cache", | |
| 79 | + "version": "v1.6.2", | |
| 80 | + "source": { | |
| 81 | + "type": "git", | |
| 82 | + "url": "https://github.com/doctrine/cache.git", | |
| 83 | + "reference": "eb152c5100571c7a45470ff2a35095ab3f3b900b" | |
| 84 | + }, | |
| 85 | + "dist": { | |
| 86 | + "type": "zip", | |
| 87 | + "url": "https://api.github.com/repos/doctrine/cache/zipball/eb152c5100571c7a45470ff2a35095ab3f3b900b", | |
| 88 | + "reference": "eb152c5100571c7a45470ff2a35095ab3f3b900b", | |
| 89 | + "shasum": "" | |
| 90 | + }, | |
| 91 | + "require": { | |
| 92 | + "php": "~5.5|~7.0" | |
| 93 | + }, | |
| 94 | + "conflict": { | |
| 95 | + "doctrine/common": ">2.2,<2.4" | |
| 96 | + }, | |
| 97 | + "require-dev": { | |
| 98 | + "phpunit/phpunit": "~4.8|~5.0", | |
| 99 | + "predis/predis": "~1.0", | |
| 100 | + "satooshi/php-coveralls": "~0.6" | |
| 101 | + }, | |
| 102 | + "type": "library", | |
| 103 | + "extra": { | |
| 104 | + "branch-alias": { | |
| 105 | + "dev-master": "1.6.x-dev" | |
| 106 | + } | |
| 107 | + }, | |
| 108 | + "autoload": { | |
| 109 | + "psr-4": { | |
| 110 | + "Doctrine\\Common\\Cache\\": "lib/Doctrine/Common/Cache" | |
| 111 | + } | |
| 112 | + }, | |
| 113 | + "notification-url": "https://packagist.org/downloads/", | |
| 114 | + "license": [ | |
| 115 | + "MIT" | |
| 116 | + ], | |
| 117 | + "authors": [ | |
| 118 | + { | |
| 119 | + "name": "Roman Borschel", | |
| 120 | + "email": "roman@code-factory.org" | |
| 121 | + }, | |
| 122 | + { | |
| 123 | + "name": "Benjamin Eberlei", | |
| 124 | + "email": "kontakt@beberlei.de" | |
| 125 | + }, | |
| 126 | + { | |
| 127 | + "name": "Guilherme Blanco", | |
| 128 | + "email": "guilhermeblanco@gmail.com" | |
| 129 | + }, | |
| 130 | + { | |
| 131 | + "name": "Jonathan Wage", | |
| 132 | + "email": "jonwage@gmail.com" | |
| 133 | + }, | |
| 134 | + { | |
| 135 | + "name": "Johannes Schmitt", | |
| 136 | + "email": "schmittjoh@gmail.com" | |
| 137 | + } | |
| 138 | + ], | |
| 139 | + "description": "Caching library offering an object-oriented API for many cache backends", | |
| 140 | + "homepage": "http://www.doctrine-project.org", | |
| 141 | + "keywords": [ | |
| 142 | + "cache", | |
| 143 | + "caching" | |
| 144 | + ], | |
| 145 | + "time": "2017-07-22T12:49:21+00:00" | |
| 146 | + }, | |
| 147 | + { | |
| 148 | + "name": "doctrine/collections", | |
| 149 | + "version": "v1.4.0", | |
| 150 | + "source": { | |
| 151 | + "type": "git", | |
| 152 | + "url": "https://github.com/doctrine/collections.git", | |
| 153 | + "reference": "1a4fb7e902202c33cce8c55989b945612943c2ba" | |
| 154 | + }, | |
| 155 | + "dist": { | |
| 156 | + "type": "zip", | |
| 157 | + "url": "https://api.github.com/repos/doctrine/collections/zipball/1a4fb7e902202c33cce8c55989b945612943c2ba", | |
| 158 | + "reference": "1a4fb7e902202c33cce8c55989b945612943c2ba", | |
| 159 | + "shasum": "" | |
| 160 | + }, | |
| 161 | + "require": { | |
| 162 | + "php": "^5.6 || ^7.0" | |
| 163 | + }, | |
| 164 | + "require-dev": { | |
| 165 | + "doctrine/coding-standard": "~0.1@dev", | |
| 166 | + "phpunit/phpunit": "^5.7" | |
| 167 | + }, | |
| 168 | + "type": "library", | |
| 169 | + "extra": { | |
| 170 | + "branch-alias": { | |
| 171 | + "dev-master": "1.3.x-dev" | |
| 172 | + } | |
| 173 | + }, | |
| 174 | + "autoload": { | |
| 175 | + "psr-0": { | |
| 176 | + "Doctrine\\Common\\Collections\\": "lib/" | |
| 177 | + } | |
| 178 | + }, | |
| 179 | + "notification-url": "https://packagist.org/downloads/", | |
| 180 | + "license": [ | |
| 181 | + "MIT" | |
| 182 | + ], | |
| 183 | + "authors": [ | |
| 184 | + { | |
| 185 | + "name": "Roman Borschel", | |
| 186 | + "email": "roman@code-factory.org" | |
| 187 | + }, | |
| 188 | + { | |
| 189 | + "name": "Benjamin Eberlei", | |
| 190 | + "email": "kontakt@beberlei.de" | |
| 191 | + }, | |
| 192 | + { | |
| 193 | + "name": "Guilherme Blanco", | |
| 194 | + "email": "guilhermeblanco@gmail.com" | |
| 195 | + }, | |
| 196 | + { | |
| 197 | + "name": "Jonathan Wage", | |
| 198 | + "email": "jonwage@gmail.com" | |
| 199 | + }, | |
| 200 | + { | |
| 201 | + "name": "Johannes Schmitt", | |
| 202 | + "email": "schmittjoh@gmail.com" | |
| 203 | + } | |
| 204 | + ], | |
| 205 | + "description": "Collections Abstraction library", | |
| 206 | + "homepage": "http://www.doctrine-project.org", | |
| 207 | + "keywords": [ | |
| 208 | + "array", | |
| 209 | + "collections", | |
| 210 | + "iterator" | |
| 211 | + ], | |
| 212 | + "time": "2017-01-03T10:49:41+00:00" | |
| 213 | + }, | |
| 214 | + { | |
| 215 | + "name": "doctrine/common", | |
| 216 | + "version": "v2.7.3", | |
| 217 | + "source": { | |
| 218 | + "type": "git", | |
| 219 | + "url": "https://github.com/doctrine/common.git", | |
| 220 | + "reference": "4acb8f89626baafede6ee5475bc5844096eba8a9" | |
| 221 | + }, | |
| 222 | + "dist": { | |
| 223 | + "type": "zip", | |
| 224 | + "url": "https://api.github.com/repos/doctrine/common/zipball/4acb8f89626baafede6ee5475bc5844096eba8a9", | |
| 225 | + "reference": "4acb8f89626baafede6ee5475bc5844096eba8a9", | |
| 226 | + "shasum": "" | |
| 227 | + }, | |
| 228 | + "require": { | |
| 229 | + "doctrine/annotations": "1.*", | |
| 230 | + "doctrine/cache": "1.*", | |
| 231 | + "doctrine/collections": "1.*", | |
| 232 | + "doctrine/inflector": "1.*", | |
| 233 | + "doctrine/lexer": "1.*", | |
| 234 | + "php": "~5.6|~7.0" | |
| 235 | + }, | |
| 236 | + "require-dev": { | |
| 237 | + "phpunit/phpunit": "^5.4.6" | |
| 238 | + }, | |
| 239 | + "type": "library", | |
| 240 | + "extra": { | |
| 241 | + "branch-alias": { | |
| 242 | + "dev-master": "2.7.x-dev" | |
| 243 | + } | |
| 244 | + }, | |
| 245 | + "autoload": { | |
| 246 | + "psr-4": { | |
| 247 | + "Doctrine\\Common\\": "lib/Doctrine/Common" | |
| 248 | + } | |
| 249 | + }, | |
| 250 | + "notification-url": "https://packagist.org/downloads/", | |
| 251 | + "license": [ | |
| 252 | + "MIT" | |
| 253 | + ], | |
| 254 | + "authors": [ | |
| 255 | + { | |
| 256 | + "name": "Roman Borschel", | |
| 257 | + "email": "roman@code-factory.org" | |
| 258 | + }, | |
| 259 | + { | |
| 260 | + "name": "Benjamin Eberlei", | |
| 261 | + "email": "kontakt@beberlei.de" | |
| 262 | + }, | |
| 263 | + { | |
| 264 | + "name": "Guilherme Blanco", | |
| 265 | + "email": "guilhermeblanco@gmail.com" | |
| 266 | + }, | |
| 267 | + { | |
| 268 | + "name": "Jonathan Wage", | |
| 269 | + "email": "jonwage@gmail.com" | |
| 270 | + }, | |
| 271 | + { | |
| 272 | + "name": "Johannes Schmitt", | |
| 273 | + "email": "schmittjoh@gmail.com" | |
| 274 | + } | |
| 275 | + ], | |
| 276 | + "description": "Common Library for Doctrine projects", | |
| 277 | + "homepage": "http://www.doctrine-project.org", | |
| 278 | + "keywords": [ | |
| 279 | + "annotations", | |
| 280 | + "collections", | |
| 281 | + "eventmanager", | |
| 282 | + "persistence", | |
| 283 | + "spl" | |
| 284 | + ], | |
| 285 | + "time": "2017-07-22T08:35:12+00:00" | |
| 286 | + }, | |
| 287 | + { | |
| 288 | + "name": "doctrine/dbal", | |
| 289 | + "version": "v2.5.13", | |
| 290 | + "source": { | |
| 291 | + "type": "git", | |
| 292 | + "url": "https://github.com/doctrine/dbal.git", | |
| 293 | + "reference": "729340d8d1eec8f01bff708e12e449a3415af873" | |
| 294 | + }, | |
| 295 | + "dist": { | |
| 296 | + "type": "zip", | |
| 297 | + "url": "https://api.github.com/repos/doctrine/dbal/zipball/729340d8d1eec8f01bff708e12e449a3415af873", | |
| 298 | + "reference": "729340d8d1eec8f01bff708e12e449a3415af873", | |
| 299 | + "shasum": "" | |
| 300 | + }, | |
| 301 | + "require": { | |
| 302 | + "doctrine/common": ">=2.4,<2.8-dev", | |
| 303 | + "php": ">=5.3.2" | |
| 304 | + }, | |
| 305 | + "require-dev": { | |
| 306 | + "phpunit/phpunit": "4.*", | |
| 307 | + "symfony/console": "2.*||^3.0" | |
| 308 | + }, | |
| 309 | + "suggest": { | |
| 310 | + "symfony/console": "For helpful console commands such as SQL execution and import of files." | |
| 311 | + }, | |
| 312 | + "bin": [ | |
| 313 | + "bin/doctrine-dbal" | |
| 314 | + ], | |
| 315 | + "type": "library", | |
| 316 | + "extra": { | |
| 317 | + "branch-alias": { | |
| 318 | + "dev-master": "2.5.x-dev" | |
| 319 | + } | |
| 320 | + }, | |
| 321 | + "autoload": { | |
| 322 | + "psr-0": { | |
| 323 | + "Doctrine\\DBAL\\": "lib/" | |
| 324 | + } | |
| 325 | + }, | |
| 326 | + "notification-url": "https://packagist.org/downloads/", | |
| 327 | + "license": [ | |
| 328 | + "MIT" | |
| 329 | + ], | |
| 330 | + "authors": [ | |
| 331 | + { | |
| 332 | + "name": "Roman Borschel", | |
| 333 | + "email": "roman@code-factory.org" | |
| 334 | + }, | |
| 335 | + { | |
| 336 | + "name": "Benjamin Eberlei", | |
| 337 | + "email": "kontakt@beberlei.de" | |
| 338 | + }, | |
| 339 | + { | |
| 340 | + "name": "Guilherme Blanco", | |
| 341 | + "email": "guilhermeblanco@gmail.com" | |
| 342 | + }, | |
| 343 | + { | |
| 344 | + "name": "Jonathan Wage", | |
| 345 | + "email": "jonwage@gmail.com" | |
| 346 | + } | |
| 347 | + ], | |
| 348 | + "description": "Database Abstraction Layer", | |
| 349 | + "homepage": "http://www.doctrine-project.org", | |
| 350 | + "keywords": [ | |
| 351 | + "database", | |
| 352 | + "dbal", | |
| 353 | + "persistence", | |
| 354 | + "queryobject" | |
| 355 | + ], | |
| 356 | + "time": "2017-07-22T20:44:48+00:00" | |
| 357 | + }, | |
| 358 | + { | |
| 359 | + "name": "doctrine/doctrine-bundle", | |
| 360 | + "version": "1.8.1", | |
| 361 | + "source": { | |
| 362 | + "type": "git", | |
| 363 | + "url": "https://github.com/doctrine/DoctrineBundle.git", | |
| 364 | + "reference": "eb6e4fb904a459be28872765ab6e2d246aac7c87" | |
| 365 | + }, | |
| 366 | + "dist": { | |
| 367 | + "type": "zip", | |
| 368 | + "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/eb6e4fb904a459be28872765ab6e2d246aac7c87", | |
| 369 | + "reference": "eb6e4fb904a459be28872765ab6e2d246aac7c87", | |
| 370 | + "shasum": "" | |
| 371 | + }, | |
| 372 | + "require": { | |
| 373 | + "doctrine/dbal": "^2.5.12", | |
| 374 | + "doctrine/doctrine-cache-bundle": "~1.2", | |
| 375 | + "jdorn/sql-formatter": "^1.2.16", | |
| 376 | + "php": "^5.5.9|^7.0", | |
| 377 | + "symfony/console": "~2.7|~3.0|~4.0", | |
| 378 | + "symfony/dependency-injection": "~2.7|~3.0|~4.0", | |
| 379 | + "symfony/doctrine-bridge": "~2.7|~3.0|~4.0", | |
| 380 | + "symfony/framework-bundle": "~2.7|~3.0|~4.0" | |
| 381 | + }, | |
| 382 | + "conflict": { | |
| 383 | + "symfony/http-foundation": "<2.6" | |
| 384 | + }, | |
| 385 | + "require-dev": { | |
| 386 | + "doctrine/orm": "~2.3", | |
| 387 | + "phpunit/phpunit": "^4.8.36|^5.7|^6.4", | |
| 388 | + "satooshi/php-coveralls": "^1.0", | |
| 389 | + "symfony/phpunit-bridge": "~2.7|~3.0|~4.0", | |
| 390 | + "symfony/property-info": "~2.8|~3.0|~4.0", | |
| 391 | + "symfony/validator": "~2.7|~3.0|~4.0", | |
| 392 | + "symfony/web-profiler-bundle": "~2.7|~3.0|~4.0", | |
| 393 | + "symfony/yaml": "~2.7|~3.0|~4.0", | |
| 394 | + "twig/twig": "~1.26|~2.0" | |
| 395 | + }, | |
| 396 | + "suggest": { | |
| 397 | + "doctrine/orm": "The Doctrine ORM integration is optional in the bundle.", | |
| 398 | + "symfony/web-profiler-bundle": "To use the data collector." | |
| 399 | + }, | |
| 400 | + "type": "symfony-bundle", | |
| 401 | + "extra": { | |
| 402 | + "branch-alias": { | |
| 403 | + "dev-master": "1.8.x-dev" | |
| 404 | + } | |
| 405 | + }, | |
| 406 | + "autoload": { | |
| 407 | + "psr-4": { | |
| 408 | + "Doctrine\\Bundle\\DoctrineBundle\\": "" | |
| 409 | + } | |
| 410 | + }, | |
| 411 | + "notification-url": "https://packagist.org/downloads/", | |
| 412 | + "license": [ | |
| 413 | + "MIT" | |
| 414 | + ], | |
| 415 | + "authors": [ | |
| 416 | + { | |
| 417 | + "name": "Symfony Community", | |
| 418 | + "homepage": "http://symfony.com/contributors" | |
| 419 | + }, | |
| 420 | + { | |
| 421 | + "name": "Benjamin Eberlei", | |
| 422 | + "email": "kontakt@beberlei.de" | |
| 423 | + }, | |
| 424 | + { | |
| 425 | + "name": "Doctrine Project", | |
| 426 | + "homepage": "http://www.doctrine-project.org/" | |
| 427 | + }, | |
| 428 | + { | |
| 429 | + "name": "Fabien Potencier", | |
| 430 | + "email": "fabien@symfony.com" | |
| 431 | + } | |
| 432 | + ], | |
| 433 | + "description": "Symfony DoctrineBundle", | |
| 434 | + "homepage": "http://www.doctrine-project.org", | |
| 435 | + "keywords": [ | |
| 436 | + "database", | |
| 437 | + "dbal", | |
| 438 | + "orm", | |
| 439 | + "persistence" | |
| 440 | + ], | |
| 441 | + "time": "2017-11-24T13:09:19+00:00" | |
| 442 | + }, | |
| 443 | + { | |
| 444 | + "name": "doctrine/doctrine-cache-bundle", | |
| 445 | + "version": "1.3.2", | |
| 446 | + "source": { | |
| 447 | + "type": "git", | |
| 448 | + "url": "https://github.com/doctrine/DoctrineCacheBundle.git", | |
| 449 | + "reference": "9baecbd6bfdd1123b0cf8c1b88fee0170a84ddd1" | |
| 450 | + }, | |
| 451 | + "dist": { | |
| 452 | + "type": "zip", | |
| 453 | + "url": "https://api.github.com/repos/doctrine/DoctrineCacheBundle/zipball/9baecbd6bfdd1123b0cf8c1b88fee0170a84ddd1", | |
| 454 | + "reference": "9baecbd6bfdd1123b0cf8c1b88fee0170a84ddd1", | |
| 455 | + "shasum": "" | |
| 456 | + }, | |
| 457 | + "require": { | |
| 458 | + "doctrine/cache": "^1.4.2", | |
| 459 | + "doctrine/inflector": "~1.0", | |
| 460 | + "php": ">=5.3.2", | |
| 461 | + "symfony/doctrine-bridge": "~2.2|~3.0|~4.0" | |
| 462 | + }, | |
| 463 | + "require-dev": { | |
| 464 | + "instaclick/coding-standard": "~1.1", | |
| 465 | + "instaclick/object-calisthenics-sniffs": "dev-master", | |
| 466 | + "instaclick/symfony2-coding-standard": "dev-remaster", | |
| 467 | + "phpunit/phpunit": "~4", | |
| 468 | + "predis/predis": "~0.8", | |
| 469 | + "satooshi/php-coveralls": "^1.0", | |
| 470 | + "squizlabs/php_codesniffer": "~1.5", | |
| 471 | + "symfony/console": "~2.2|~3.0|~4.0", | |
| 472 | + "symfony/finder": "~2.2|~3.0|~4.0", | |
| 473 | + "symfony/framework-bundle": "~2.2|~3.0|~4.0", | |
| 474 | + "symfony/phpunit-bridge": "~2.7|~3.0|~4.0", | |
| 475 | + "symfony/security-acl": "~2.3|~3.0", | |
| 476 | + "symfony/validator": "~2.2|~3.0|~4.0", | |
| 477 | + "symfony/yaml": "~2.2|~3.0|~4.0" | |
| 478 | + }, | |
| 479 | + "suggest": { | |
| 480 | + "symfony/security-acl": "For using this bundle to cache ACLs" | |
| 481 | + }, | |
| 482 | + "type": "symfony-bundle", | |
| 483 | + "extra": { | |
| 484 | + "branch-alias": { | |
| 485 | + "dev-master": "1.3.x-dev" | |
| 486 | + } | |
| 487 | + }, | |
| 488 | + "autoload": { | |
| 489 | + "psr-4": { | |
| 490 | + "Doctrine\\Bundle\\DoctrineCacheBundle\\": "" | |
| 491 | + } | |
| 492 | + }, | |
| 493 | + "notification-url": "https://packagist.org/downloads/", | |
| 494 | + "license": [ | |
| 495 | + "MIT" | |
| 496 | + ], | |
| 497 | + "authors": [ | |
| 498 | + { | |
| 499 | + "name": "Symfony Community", | |
| 500 | + "homepage": "http://symfony.com/contributors" | |
| 501 | + }, | |
| 502 | + { | |
| 503 | + "name": "Benjamin Eberlei", | |
| 504 | + "email": "kontakt@beberlei.de" | |
| 505 | + }, | |
| 506 | + { | |
| 507 | + "name": "Fabio B. Silva", | |
| 508 | + "email": "fabio.bat.silva@gmail.com" | |
| 509 | + }, | |
| 510 | + { | |
| 511 | + "name": "Guilherme Blanco", | |
| 512 | + "email": "guilhermeblanco@hotmail.com" | |
| 513 | + }, | |
| 514 | + { | |
| 515 | + "name": "Doctrine Project", | |
| 516 | + "homepage": "http://www.doctrine-project.org/" | |
| 517 | + }, | |
| 518 | + { | |
| 519 | + "name": "Fabien Potencier", | |
| 520 | + "email": "fabien@symfony.com" | |
| 521 | + } | |
| 522 | + ], | |
| 523 | + "description": "Symfony Bundle for Doctrine Cache", | |
| 524 | + "homepage": "http://www.doctrine-project.org", | |
| 525 | + "keywords": [ | |
| 526 | + "cache", | |
| 527 | + "caching" | |
| 528 | + ], | |
| 529 | + "time": "2017-10-12T17:23:29+00:00" | |
| 530 | + }, | |
| 531 | + { | |
| 532 | + "name": "doctrine/inflector", | |
| 533 | + "version": "v1.1.0", | |
| 534 | + "source": { | |
| 535 | + "type": "git", | |
| 536 | + "url": "https://github.com/doctrine/inflector.git", | |
| 537 | + "reference": "90b2128806bfde671b6952ab8bea493942c1fdae" | |
| 538 | + }, | |
| 539 | + "dist": { | |
| 540 | + "type": "zip", | |
| 541 | + "url": "https://api.github.com/repos/doctrine/inflector/zipball/90b2128806bfde671b6952ab8bea493942c1fdae", | |
| 542 | + "reference": "90b2128806bfde671b6952ab8bea493942c1fdae", | |
| 543 | + "shasum": "" | |
| 544 | + }, | |
| 545 | + "require": { | |
| 546 | + "php": ">=5.3.2" | |
| 547 | + }, | |
| 548 | + "require-dev": { | |
| 549 | + "phpunit/phpunit": "4.*" | |
| 550 | + }, | |
| 551 | + "type": "library", | |
| 552 | + "extra": { | |
| 553 | + "branch-alias": { | |
| 554 | + "dev-master": "1.1.x-dev" | |
| 555 | + } | |
| 556 | + }, | |
| 557 | + "autoload": { | |
| 558 | + "psr-0": { | |
| 559 | + "Doctrine\\Common\\Inflector\\": "lib/" | |
| 560 | + } | |
| 561 | + }, | |
| 562 | + "notification-url": "https://packagist.org/downloads/", | |
| 563 | + "license": [ | |
| 564 | + "MIT" | |
| 565 | + ], | |
| 566 | + "authors": [ | |
| 567 | + { | |
| 568 | + "name": "Roman Borschel", | |
| 569 | + "email": "roman@code-factory.org" | |
| 570 | + }, | |
| 571 | + { | |
| 572 | + "name": "Benjamin Eberlei", | |
| 573 | + "email": "kontakt@beberlei.de" | |
| 574 | + }, | |
| 575 | + { | |
| 576 | + "name": "Guilherme Blanco", | |
| 577 | + "email": "guilhermeblanco@gmail.com" | |
| 578 | + }, | |
| 579 | + { | |
| 580 | + "name": "Jonathan Wage", | |
| 581 | + "email": "jonwage@gmail.com" | |
| 582 | + }, | |
| 583 | + { | |
| 584 | + "name": "Johannes Schmitt", | |
| 585 | + "email": "schmittjoh@gmail.com" | |
| 586 | + } | |
| 587 | + ], | |
| 588 | + "description": "Common String Manipulations with regard to casing and singular/plural rules.", | |
| 589 | + "homepage": "http://www.doctrine-project.org", | |
| 590 | + "keywords": [ | |
| 591 | + "inflection", | |
| 592 | + "pluralize", | |
| 593 | + "singularize", | |
| 594 | + "string" | |
| 595 | + ], | |
| 596 | + "time": "2015-11-06T14:35:42+00:00" | |
| 597 | + }, | |
| 598 | + { | |
| 599 | + "name": "doctrine/instantiator", | |
| 600 | + "version": "1.0.5", | |
| 601 | + "source": { | |
| 602 | + "type": "git", | |
| 603 | + "url": "https://github.com/doctrine/instantiator.git", | |
| 604 | + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" | |
| 605 | + }, | |
| 606 | + "dist": { | |
| 607 | + "type": "zip", | |
| 608 | + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", | |
| 609 | + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", | |
| 610 | + "shasum": "" | |
| 611 | + }, | |
| 612 | + "require": { | |
| 613 | + "php": ">=5.3,<8.0-DEV" | |
| 614 | + }, | |
| 615 | + "require-dev": { | |
| 616 | + "athletic/athletic": "~0.1.8", | |
| 617 | + "ext-pdo": "*", | |
| 618 | + "ext-phar": "*", | |
| 619 | + "phpunit/phpunit": "~4.0", | |
| 620 | + "squizlabs/php_codesniffer": "~2.0" | |
| 621 | + }, | |
| 622 | + "type": "library", | |
| 623 | + "extra": { | |
| 624 | + "branch-alias": { | |
| 625 | + "dev-master": "1.0.x-dev" | |
| 626 | + } | |
| 627 | + }, | |
| 628 | + "autoload": { | |
| 629 | + "psr-4": { | |
| 630 | + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" | |
| 631 | + } | |
| 632 | + }, | |
| 633 | + "notification-url": "https://packagist.org/downloads/", | |
| 634 | + "license": [ | |
| 635 | + "MIT" | |
| 636 | + ], | |
| 637 | + "authors": [ | |
| 638 | + { | |
| 639 | + "name": "Marco Pivetta", | |
| 640 | + "email": "ocramius@gmail.com", | |
| 641 | + "homepage": "http://ocramius.github.com/" | |
| 642 | + } | |
| 643 | + ], | |
| 644 | + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", | |
| 645 | + "homepage": "https://github.com/doctrine/instantiator", | |
| 646 | + "keywords": [ | |
| 647 | + "constructor", | |
| 648 | + "instantiate" | |
| 649 | + ], | |
| 650 | + "time": "2015-06-14T21:17:01+00:00" | |
| 651 | + }, | |
| 652 | + { | |
| 653 | + "name": "doctrine/lexer", | |
| 654 | + "version": "v1.0.1", | |
| 655 | + "source": { | |
| 656 | + "type": "git", | |
| 657 | + "url": "https://github.com/doctrine/lexer.git", | |
| 658 | + "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c" | |
| 659 | + }, | |
| 660 | + "dist": { | |
| 661 | + "type": "zip", | |
| 662 | + "url": "https://api.github.com/repos/doctrine/lexer/zipball/83893c552fd2045dd78aef794c31e694c37c0b8c", | |
| 663 | + "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c", | |
| 664 | + "shasum": "" | |
| 665 | + }, | |
| 666 | + "require": { | |
| 667 | + "php": ">=5.3.2" | |
| 668 | + }, | |
| 669 | + "type": "library", | |
| 670 | + "extra": { | |
| 671 | + "branch-alias": { | |
| 672 | + "dev-master": "1.0.x-dev" | |
| 673 | + } | |
| 674 | + }, | |
| 675 | + "autoload": { | |
| 676 | + "psr-0": { | |
| 677 | + "Doctrine\\Common\\Lexer\\": "lib/" | |
| 678 | + } | |
| 679 | + }, | |
| 680 | + "notification-url": "https://packagist.org/downloads/", | |
| 681 | + "license": [ | |
| 682 | + "MIT" | |
| 683 | + ], | |
| 684 | + "authors": [ | |
| 685 | + { | |
| 686 | + "name": "Roman Borschel", | |
| 687 | + "email": "roman@code-factory.org" | |
| 688 | + }, | |
| 689 | + { | |
| 690 | + "name": "Guilherme Blanco", | |
| 691 | + "email": "guilhermeblanco@gmail.com" | |
| 692 | + }, | |
| 693 | + { | |
| 694 | + "name": "Johannes Schmitt", | |
| 695 | + "email": "schmittjoh@gmail.com" | |
| 696 | + } | |
| 697 | + ], | |
| 698 | + "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.", | |
| 699 | + "homepage": "http://www.doctrine-project.org", | |
| 700 | + "keywords": [ | |
| 701 | + "lexer", | |
| 702 | + "parser" | |
| 703 | + ], | |
| 704 | + "time": "2014-09-09T13:34:57+00:00" | |
| 705 | + }, | |
| 706 | + { | |
| 707 | + "name": "doctrine/orm", | |
| 708 | + "version": "v2.5.14", | |
| 709 | + "source": { | |
| 710 | + "type": "git", | |
| 711 | + "url": "https://github.com/doctrine/doctrine2.git", | |
| 712 | + "reference": "810a7baf81462a5ddf10e8baa8cb94b6eec02754" | |
| 713 | + }, | |
| 714 | + "dist": { | |
| 715 | + "type": "zip", | |
| 716 | + "url": "https://api.github.com/repos/doctrine/doctrine2/zipball/810a7baf81462a5ddf10e8baa8cb94b6eec02754", | |
| 717 | + "reference": "810a7baf81462a5ddf10e8baa8cb94b6eec02754", | |
| 718 | + "shasum": "" | |
| 719 | + }, | |
| 720 | + "require": { | |
| 721 | + "doctrine/cache": "~1.4", | |
| 722 | + "doctrine/collections": "~1.2", | |
| 723 | + "doctrine/common": ">=2.5-dev,<2.9-dev", | |
| 724 | + "doctrine/dbal": ">=2.5-dev,<2.7-dev", | |
| 725 | + "doctrine/instantiator": "^1.0.1", | |
| 726 | + "ext-pdo": "*", | |
| 727 | + "php": ">=5.4", | |
| 728 | + "symfony/console": "~2.5|~3.0|~4.0" | |
| 729 | + }, | |
| 730 | + "require-dev": { | |
| 731 | + "phpunit/phpunit": "~4.0", | |
| 732 | + "symfony/yaml": "~2.3|~3.0|~4.0" | |
| 733 | + }, | |
| 734 | + "suggest": { | |
| 735 | + "symfony/yaml": "If you want to use YAML Metadata Mapping Driver" | |
| 736 | + }, | |
| 737 | + "bin": [ | |
| 738 | + "bin/doctrine", | |
| 739 | + "bin/doctrine.php" | |
| 740 | + ], | |
| 741 | + "type": "library", | |
| 742 | + "extra": { | |
| 743 | + "branch-alias": { | |
| 744 | + "dev-master": "2.6.x-dev" | |
| 745 | + } | |
| 746 | + }, | |
| 747 | + "autoload": { | |
| 748 | + "psr-0": { | |
| 749 | + "Doctrine\\ORM\\": "lib/" | |
| 750 | + } | |
| 751 | + }, | |
| 752 | + "notification-url": "https://packagist.org/downloads/", | |
| 753 | + "license": [ | |
| 754 | + "MIT" | |
| 755 | + ], | |
| 756 | + "authors": [ | |
| 757 | + { | |
| 758 | + "name": "Roman Borschel", | |
| 759 | + "email": "roman@code-factory.org" | |
| 760 | + }, | |
| 761 | + { | |
| 762 | + "name": "Benjamin Eberlei", | |
| 763 | + "email": "kontakt@beberlei.de" | |
| 764 | + }, | |
| 765 | + { | |
| 766 | + "name": "Guilherme Blanco", | |
| 767 | + "email": "guilhermeblanco@gmail.com" | |
| 768 | + }, | |
| 769 | + { | |
| 770 | + "name": "Jonathan Wage", | |
| 771 | + "email": "jonwage@gmail.com" | |
| 772 | + } | |
| 773 | + ], | |
| 774 | + "description": "Object-Relational-Mapper for PHP", | |
| 775 | + "homepage": "http://www.doctrine-project.org", | |
| 776 | + "keywords": [ | |
| 777 | + "database", | |
| 778 | + "orm" | |
| 779 | + ], | |
| 780 | + "time": "2017-12-17T02:57:51+00:00" | |
| 781 | + }, | |
| 782 | + { | |
| 783 | + "name": "incenteev/composer-parameter-handler", | |
| 784 | + "version": "v2.1.2", | |
| 785 | + "source": { | |
| 786 | + "type": "git", | |
| 787 | + "url": "https://github.com/Incenteev/ParameterHandler.git", | |
| 788 | + "reference": "d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc" | |
| 789 | + }, | |
| 790 | + "dist": { | |
| 791 | + "type": "zip", | |
| 792 | + "url": "https://api.github.com/repos/Incenteev/ParameterHandler/zipball/d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc", | |
| 793 | + "reference": "d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc", | |
| 794 | + "shasum": "" | |
| 795 | + }, | |
| 796 | + "require": { | |
| 797 | + "php": ">=5.3.3", | |
| 798 | + "symfony/yaml": "~2.3|~3.0" | |
| 799 | + }, | |
| 800 | + "require-dev": { | |
| 801 | + "composer/composer": "1.0.*@dev", | |
| 802 | + "phpspec/prophecy-phpunit": "~1.0", | |
| 803 | + "symfony/filesystem": "~2.2" | |
| 804 | + }, | |
| 805 | + "type": "library", | |
| 806 | + "extra": { | |
| 807 | + "branch-alias": { | |
| 808 | + "dev-master": "2.1.x-dev" | |
| 809 | + } | |
| 810 | + }, | |
| 811 | + "autoload": { | |
| 812 | + "psr-4": { | |
| 813 | + "Incenteev\\ParameterHandler\\": "" | |
| 814 | + } | |
| 815 | + }, | |
| 816 | + "notification-url": "https://packagist.org/downloads/", | |
| 817 | + "license": [ | |
| 818 | + "MIT" | |
| 819 | + ], | |
| 820 | + "authors": [ | |
| 821 | + { | |
| 822 | + "name": "Christophe Coevoet", | |
| 823 | + "email": "stof@notk.org" | |
| 824 | + } | |
| 825 | + ], | |
| 826 | + "description": "Composer script handling your ignored parameter file", | |
| 827 | + "homepage": "https://github.com/Incenteev/ParameterHandler", | |
| 828 | + "keywords": [ | |
| 829 | + "parameters management" | |
| 830 | + ], | |
| 831 | + "time": "2015-11-10T17:04:01+00:00" | |
| 832 | + }, | |
| 833 | + { | |
| 834 | + "name": "ircmaxell/password-compat", | |
| 835 | + "version": "v1.0.4", | |
| 836 | + "source": { | |
| 837 | + "type": "git", | |
| 838 | + "url": "https://github.com/ircmaxell/password_compat.git", | |
| 839 | + "reference": "5c5cde8822a69545767f7c7f3058cb15ff84614c" | |
| 840 | + }, | |
| 841 | + "dist": { | |
| 842 | + "type": "zip", | |
| 843 | + "url": "https://api.github.com/repos/ircmaxell/password_compat/zipball/5c5cde8822a69545767f7c7f3058cb15ff84614c", | |
| 844 | + "reference": "5c5cde8822a69545767f7c7f3058cb15ff84614c", | |
| 845 | + "shasum": "" | |
| 846 | + }, | |
| 847 | + "require-dev": { | |
| 848 | + "phpunit/phpunit": "4.*" | |
| 849 | + }, | |
| 850 | + "type": "library", | |
| 851 | + "autoload": { | |
| 852 | + "files": [ | |
| 853 | + "lib/password.php" | |
| 854 | + ] | |
| 855 | + }, | |
| 856 | + "notification-url": "https://packagist.org/downloads/", | |
| 857 | + "license": [ | |
| 858 | + "MIT" | |
| 859 | + ], | |
| 860 | + "authors": [ | |
| 861 | + { | |
| 862 | + "name": "Anthony Ferrara", | |
| 863 | + "email": "ircmaxell@php.net", | |
| 864 | + "homepage": "http://blog.ircmaxell.com" | |
| 865 | + } | |
| 866 | + ], | |
| 867 | + "description": "A compatibility library for the proposed simplified password hashing algorithm: https://wiki.php.net/rfc/password_hash", | |
| 868 | + "homepage": "https://github.com/ircmaxell/password_compat", | |
| 869 | + "keywords": [ | |
| 870 | + "hashing", | |
| 871 | + "password" | |
| 872 | + ], | |
| 873 | + "time": "2014-11-20T16:49:30+00:00" | |
| 874 | + }, | |
| 875 | + { | |
| 876 | + "name": "jdorn/sql-formatter", | |
| 877 | + "version": "v1.2.17", | |
| 878 | + "source": { | |
| 879 | + "type": "git", | |
| 880 | + "url": "https://github.com/jdorn/sql-formatter.git", | |
| 881 | + "reference": "64990d96e0959dff8e059dfcdc1af130728d92bc" | |
| 882 | + }, | |
| 883 | + "dist": { | |
| 884 | + "type": "zip", | |
| 885 | + "url": "https://api.github.com/repos/jdorn/sql-formatter/zipball/64990d96e0959dff8e059dfcdc1af130728d92bc", | |
| 886 | + "reference": "64990d96e0959dff8e059dfcdc1af130728d92bc", | |
| 887 | + "shasum": "" | |
| 888 | + }, | |
| 889 | + "require": { | |
| 890 | + "php": ">=5.2.4" | |
| 891 | + }, | |
| 892 | + "require-dev": { | |
| 893 | + "phpunit/phpunit": "3.7.*" | |
| 894 | + }, | |
| 895 | + "type": "library", | |
| 896 | + "extra": { | |
| 897 | + "branch-alias": { | |
| 898 | + "dev-master": "1.3.x-dev" | |
| 899 | + } | |
| 900 | + }, | |
| 901 | + "autoload": { | |
| 902 | + "classmap": [ | |
| 903 | + "lib" | |
| 904 | + ] | |
| 905 | + }, | |
| 906 | + "notification-url": "https://packagist.org/downloads/", | |
| 907 | + "license": [ | |
| 908 | + "MIT" | |
| 909 | + ], | |
| 910 | + "authors": [ | |
| 911 | + { | |
| 912 | + "name": "Jeremy Dorn", | |
| 913 | + "email": "jeremy@jeremydorn.com", | |
| 914 | + "homepage": "http://jeremydorn.com/" | |
| 915 | + } | |
| 916 | + ], | |
| 917 | + "description": "a PHP SQL highlighting library", | |
| 918 | + "homepage": "https://github.com/jdorn/sql-formatter/", | |
| 919 | + "keywords": [ | |
| 920 | + "highlight", | |
| 921 | + "sql" | |
| 922 | + ], | |
| 923 | + "time": "2014-01-12T16:20:24+00:00" | |
| 924 | + }, | |
| 925 | + { | |
| 926 | + "name": "monolog/monolog", | |
| 927 | + "version": "1.23.0", | |
| 928 | + "source": { | |
| 929 | + "type": "git", | |
| 930 | + "url": "https://github.com/Seldaek/monolog.git", | |
| 931 | + "reference": "fd8c787753b3a2ad11bc60c063cff1358a32a3b4" | |
| 932 | + }, | |
| 933 | + "dist": { | |
| 934 | + "type": "zip", | |
| 935 | + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/fd8c787753b3a2ad11bc60c063cff1358a32a3b4", | |
| 936 | + "reference": "fd8c787753b3a2ad11bc60c063cff1358a32a3b4", | |
| 937 | + "shasum": "" | |
| 938 | + }, | |
| 939 | + "require": { | |
| 940 | + "php": ">=5.3.0", | |
| 941 | + "psr/log": "~1.0" | |
| 942 | + }, | |
| 943 | + "provide": { | |
| 944 | + "psr/log-implementation": "1.0.0" | |
| 945 | + }, | |
| 946 | + "require-dev": { | |
| 947 | + "aws/aws-sdk-php": "^2.4.9 || ^3.0", | |
| 948 | + "doctrine/couchdb": "~1.0@dev", | |
| 949 | + "graylog2/gelf-php": "~1.0", | |
| 950 | + "jakub-onderka/php-parallel-lint": "0.9", | |
| 951 | + "php-amqplib/php-amqplib": "~2.4", | |
| 952 | + "php-console/php-console": "^3.1.3", | |
| 953 | + "phpunit/phpunit": "~4.5", | |
| 954 | + "phpunit/phpunit-mock-objects": "2.3.0", | |
| 955 | + "ruflin/elastica": ">=0.90 <3.0", | |
| 956 | + "sentry/sentry": "^0.13", | |
| 957 | + "swiftmailer/swiftmailer": "^5.3|^6.0" | |
| 958 | + }, | |
| 959 | + "suggest": { | |
| 960 | + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", | |
| 961 | + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", | |
| 962 | + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", | |
| 963 | + "ext-mongo": "Allow sending log messages to a MongoDB server", | |
| 964 | + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", | |
| 965 | + "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", | |
| 966 | + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", | |
| 967 | + "php-console/php-console": "Allow sending log messages to Google Chrome", | |
| 968 | + "rollbar/rollbar": "Allow sending log messages to Rollbar", | |
| 969 | + "ruflin/elastica": "Allow sending log messages to an Elastic Search server", | |
| 970 | + "sentry/sentry": "Allow sending log messages to a Sentry server" | |
| 971 | + }, | |
| 972 | + "type": "library", | |
| 973 | + "extra": { | |
| 974 | + "branch-alias": { | |
| 975 | + "dev-master": "2.0.x-dev" | |
| 976 | + } | |
| 977 | + }, | |
| 978 | + "autoload": { | |
| 979 | + "psr-4": { | |
| 980 | + "Monolog\\": "src/Monolog" | |
| 981 | + } | |
| 982 | + }, | |
| 983 | + "notification-url": "https://packagist.org/downloads/", | |
| 984 | + "license": [ | |
| 985 | + "MIT" | |
| 986 | + ], | |
| 987 | + "authors": [ | |
| 988 | + { | |
| 989 | + "name": "Jordi Boggiano", | |
| 990 | + "email": "j.boggiano@seld.be", | |
| 991 | + "homepage": "http://seld.be" | |
| 992 | + } | |
| 993 | + ], | |
| 994 | + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", | |
| 995 | + "homepage": "http://github.com/Seldaek/monolog", | |
| 996 | + "keywords": [ | |
| 997 | + "log", | |
| 998 | + "logging", | |
| 999 | + "psr-3" | |
| 1000 | + ], | |
| 1001 | + "time": "2017-06-19T01:22:40+00:00" | |
| 1002 | + }, | |
| 1003 | + { | |
| 1004 | + "name": "paragonie/random_compat", | |
| 1005 | + "version": "v2.0.11", | |
| 1006 | + "source": { | |
| 1007 | + "type": "git", | |
| 1008 | + "url": "https://github.com/paragonie/random_compat.git", | |
| 1009 | + "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8" | |
| 1010 | + }, | |
| 1011 | + "dist": { | |
| 1012 | + "type": "zip", | |
| 1013 | + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/5da4d3c796c275c55f057af5a643ae297d96b4d8", | |
| 1014 | + "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8", | |
| 1015 | + "shasum": "" | |
| 1016 | + }, | |
| 1017 | + "require": { | |
| 1018 | + "php": ">=5.2.0" | |
| 1019 | + }, | |
| 1020 | + "require-dev": { | |
| 1021 | + "phpunit/phpunit": "4.*|5.*" | |
| 1022 | + }, | |
| 1023 | + "suggest": { | |
| 1024 | + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." | |
| 1025 | + }, | |
| 1026 | + "type": "library", | |
| 1027 | + "autoload": { | |
| 1028 | + "files": [ | |
| 1029 | + "lib/random.php" | |
| 1030 | + ] | |
| 1031 | + }, | |
| 1032 | + "notification-url": "https://packagist.org/downloads/", | |
| 1033 | + "license": [ | |
| 1034 | + "MIT" | |
| 1035 | + ], | |
| 1036 | + "authors": [ | |
| 1037 | + { | |
| 1038 | + "name": "Paragon Initiative Enterprises", | |
| 1039 | + "email": "security@paragonie.com", | |
| 1040 | + "homepage": "https://paragonie.com" | |
| 1041 | + } | |
| 1042 | + ], | |
| 1043 | + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", | |
| 1044 | + "keywords": [ | |
| 1045 | + "csprng", | |
| 1046 | + "pseudorandom", | |
| 1047 | + "random" | |
| 1048 | + ], | |
| 1049 | + "time": "2017-09-27T21:40:39+00:00" | |
| 1050 | + }, | |
| 1051 | + { | |
| 1052 | + "name": "psr/log", | |
| 1053 | + "version": "1.0.2", | |
| 1054 | + "source": { | |
| 1055 | + "type": "git", | |
| 1056 | + "url": "https://github.com/php-fig/log.git", | |
| 1057 | + "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" | |
| 1058 | + }, | |
| 1059 | + "dist": { | |
| 1060 | + "type": "zip", | |
| 1061 | + "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", | |
| 1062 | + "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", | |
| 1063 | + "shasum": "" | |
| 1064 | + }, | |
| 1065 | + "require": { | |
| 1066 | + "php": ">=5.3.0" | |
| 1067 | + }, | |
| 1068 | + "type": "library", | |
| 1069 | + "extra": { | |
| 1070 | + "branch-alias": { | |
| 1071 | + "dev-master": "1.0.x-dev" | |
| 1072 | + } | |
| 1073 | + }, | |
| 1074 | + "autoload": { | |
| 1075 | + "psr-4": { | |
| 1076 | + "Psr\\Log\\": "Psr/Log/" | |
| 1077 | + } | |
| 1078 | + }, | |
| 1079 | + "notification-url": "https://packagist.org/downloads/", | |
| 1080 | + "license": [ | |
| 1081 | + "MIT" | |
| 1082 | + ], | |
| 1083 | + "authors": [ | |
| 1084 | + { | |
| 1085 | + "name": "PHP-FIG", | |
| 1086 | + "homepage": "http://www.php-fig.org/" | |
| 1087 | + } | |
| 1088 | + ], | |
| 1089 | + "description": "Common interface for logging libraries", | |
| 1090 | + "homepage": "https://github.com/php-fig/log", | |
| 1091 | + "keywords": [ | |
| 1092 | + "log", | |
| 1093 | + "psr", | |
| 1094 | + "psr-3" | |
| 1095 | + ], | |
| 1096 | + "time": "2016-10-10T12:19:37+00:00" | |
| 1097 | + }, | |
| 1098 | + { | |
| 1099 | + "name": "sensio/distribution-bundle", | |
| 1100 | + "version": "v4.0.39", | |
| 1101 | + "target-dir": "Sensio/Bundle/DistributionBundle", | |
| 1102 | + "source": { | |
| 1103 | + "type": "git", | |
| 1104 | + "url": "https://github.com/sensiolabs/SensioDistributionBundle.git", | |
| 1105 | + "reference": "bf582cc96becd7ae53f9fe8c4647d0a41c243a42" | |
| 1106 | + }, | |
| 1107 | + "dist": { | |
| 1108 | + "type": "zip", | |
| 1109 | + "url": "https://api.github.com/repos/sensiolabs/SensioDistributionBundle/zipball/bf582cc96becd7ae53f9fe8c4647d0a41c243a42", | |
| 1110 | + "reference": "bf582cc96becd7ae53f9fe8c4647d0a41c243a42", | |
| 1111 | + "shasum": "" | |
| 1112 | + }, | |
| 1113 | + "require": { | |
| 1114 | + "php": ">=5.3.9", | |
| 1115 | + "sensiolabs/security-checker": "~3.0", | |
| 1116 | + "symfony/class-loader": "~2.2", | |
| 1117 | + "symfony/framework-bundle": "~2.3", | |
| 1118 | + "symfony/process": "~2.2" | |
| 1119 | + }, | |
| 1120 | + "require-dev": { | |
| 1121 | + "symfony/form": "~2.2", | |
| 1122 | + "symfony/validator": "~2.2", | |
| 1123 | + "symfony/yaml": "~2.2" | |
| 1124 | + }, | |
| 1125 | + "suggest": { | |
| 1126 | + "symfony/form": "If you want to use the configurator", | |
| 1127 | + "symfony/validator": "If you want to use the configurator", | |
| 1128 | + "symfony/yaml": "If you want to use the configurator" | |
| 1129 | + }, | |
| 1130 | + "type": "symfony-bundle", | |
| 1131 | + "extra": { | |
| 1132 | + "branch-alias": { | |
| 1133 | + "dev-master": "4.0.x-dev" | |
| 1134 | + } | |
| 1135 | + }, | |
| 1136 | + "autoload": { | |
| 1137 | + "psr-0": { | |
| 1138 | + "Sensio\\Bundle\\DistributionBundle": "" | |
| 1139 | + } | |
| 1140 | + }, | |
| 1141 | + "notification-url": "https://packagist.org/downloads/", | |
| 1142 | + "license": [ | |
| 1143 | + "MIT" | |
| 1144 | + ], | |
| 1145 | + "authors": [ | |
| 1146 | + { | |
| 1147 | + "name": "Fabien Potencier", | |
| 1148 | + "email": "fabien@symfony.com" | |
| 1149 | + } | |
| 1150 | + ], | |
| 1151 | + "description": "Base bundle for Symfony Distributions", | |
| 1152 | + "keywords": [ | |
| 1153 | + "configuration", | |
| 1154 | + "distribution" | |
| 1155 | + ], | |
| 1156 | + "time": "2017-08-25T16:49:47+00:00" | |
| 1157 | + }, | |
| 1158 | + { | |
| 1159 | + "name": "sensio/framework-extra-bundle", | |
| 1160 | + "version": "v3.0.29", | |
| 1161 | + "source": { | |
| 1162 | + "type": "git", | |
| 1163 | + "url": "https://github.com/sensiolabs/SensioFrameworkExtraBundle.git", | |
| 1164 | + "reference": "bb907234df776b68922eb4b25bfa061683597b6a" | |
| 1165 | + }, | |
| 1166 | + "dist": { | |
| 1167 | + "type": "zip", | |
| 1168 | + "url": "https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/zipball/bb907234df776b68922eb4b25bfa061683597b6a", | |
| 1169 | + "reference": "bb907234df776b68922eb4b25bfa061683597b6a", | |
| 1170 | + "shasum": "" | |
| 1171 | + }, | |
| 1172 | + "require": { | |
| 1173 | + "doctrine/common": "~2.2", | |
| 1174 | + "symfony/dependency-injection": "~2.3|~3.0", | |
| 1175 | + "symfony/framework-bundle": "~2.3|~3.0|~4.0" | |
| 1176 | + }, | |
| 1177 | + "require-dev": { | |
| 1178 | + "doctrine/doctrine-bundle": "~1.5", | |
| 1179 | + "doctrine/orm": "~2.4,>=2.4.5", | |
| 1180 | + "symfony/asset": "~2.7|~3.0|~4.0", | |
| 1181 | + "symfony/browser-kit": "~2.3|~3.0|~4.0", | |
| 1182 | + "symfony/dom-crawler": "~2.3|~3.0|~4.0", | |
| 1183 | + "symfony/expression-language": "~2.4|~3.0|~4.0", | |
| 1184 | + "symfony/finder": "~2.3|~3.0|~4.0", | |
| 1185 | + "symfony/phpunit-bridge": "~3.2|~4.0", | |
| 1186 | + "symfony/psr-http-message-bridge": "^0.3|^1.0", | |
| 1187 | + "symfony/security-bundle": "~2.4|~3.0|~4.0", | |
| 1188 | + "symfony/templating": "~2.3|~3.0|~4.0", | |
| 1189 | + "symfony/translation": "~2.3|~3.0|~4.0", | |
| 1190 | + "symfony/twig-bundle": "~2.3|~3.0|~4.0", | |
| 1191 | + "symfony/yaml": "~2.3|~3.0|~4.0", | |
| 1192 | + "twig/twig": "~1.12|~2.0", | |
| 1193 | + "zendframework/zend-diactoros": "^1.3" | |
| 1194 | + }, | |
| 1195 | + "suggest": { | |
| 1196 | + "symfony/expression-language": "", | |
| 1197 | + "symfony/psr-http-message-bridge": "To use the PSR-7 converters", | |
| 1198 | + "symfony/security-bundle": "" | |
| 1199 | + }, | |
| 1200 | + "type": "symfony-bundle", | |
| 1201 | + "extra": { | |
| 1202 | + "branch-alias": { | |
| 1203 | + "dev-master": "3.0.x-dev" | |
| 1204 | + } | |
| 1205 | + }, | |
| 1206 | + "autoload": { | |
| 1207 | + "psr-4": { | |
| 1208 | + "Sensio\\Bundle\\FrameworkExtraBundle\\": "" | |
| 1209 | + } | |
| 1210 | + }, | |
| 1211 | + "notification-url": "https://packagist.org/downloads/", | |
| 1212 | + "license": [ | |
| 1213 | + "MIT" | |
| 1214 | + ], | |
| 1215 | + "authors": [ | |
| 1216 | + { | |
| 1217 | + "name": "Fabien Potencier", | |
| 1218 | + "email": "fabien@symfony.com" | |
| 1219 | + } | |
| 1220 | + ], | |
| 1221 | + "description": "This bundle provides a way to configure your controllers with annotations", | |
| 1222 | + "keywords": [ | |
| 1223 | + "annotations", | |
| 1224 | + "controllers" | |
| 1225 | + ], | |
| 1226 | + "time": "2017-12-14T19:03:23+00:00" | |
| 1227 | + }, | |
| 1228 | + { | |
| 1229 | + "name": "sensiolabs/security-checker", | |
| 1230 | + "version": "v3.0.7", | |
| 1231 | + "source": { | |
| 1232 | + "type": "git", | |
| 1233 | + "url": "https://github.com/sensiolabs/security-checker.git", | |
| 1234 | + "reference": "59a6a299e2f5612dc8692d40e84373703a5df1b5" | |
| 1235 | + }, | |
| 1236 | + "dist": { | |
| 1237 | + "type": "zip", | |
| 1238 | + "url": "https://api.github.com/repos/sensiolabs/security-checker/zipball/59a6a299e2f5612dc8692d40e84373703a5df1b5", | |
| 1239 | + "reference": "59a6a299e2f5612dc8692d40e84373703a5df1b5", | |
| 1240 | + "shasum": "" | |
| 1241 | + }, | |
| 1242 | + "require": { | |
| 1243 | + "symfony/console": "~2.0|~3.0" | |
| 1244 | + }, | |
| 1245 | + "bin": [ | |
| 1246 | + "security-checker" | |
| 1247 | + ], | |
| 1248 | + "type": "library", | |
| 1249 | + "extra": { | |
| 1250 | + "branch-alias": { | |
| 1251 | + "dev-master": "3.0-dev" | |
| 1252 | + } | |
| 1253 | + }, | |
| 1254 | + "autoload": { | |
| 1255 | + "psr-0": { | |
| 1256 | + "SensioLabs\\Security": "" | |
| 1257 | + } | |
| 1258 | + }, | |
| 1259 | + "notification-url": "https://packagist.org/downloads/", | |
| 1260 | + "license": [ | |
| 1261 | + "MIT" | |
| 1262 | + ], | |
| 1263 | + "authors": [ | |
| 1264 | + { | |
| 1265 | + "name": "Fabien Potencier", | |
| 1266 | + "email": "fabien.potencier@gmail.com" | |
| 1267 | + } | |
| 1268 | + ], | |
| 1269 | + "description": "A security checker for your composer.lock", | |
| 1270 | + "time": "2017-03-29T09:29:53+00:00" | |
| 1271 | + }, | |
| 1272 | + { | |
| 1273 | + "name": "swiftmailer/swiftmailer", | |
| 1274 | + "version": "v5.4.9", | |
| 1275 | + "source": { | |
| 1276 | + "type": "git", | |
| 1277 | + "url": "https://github.com/swiftmailer/swiftmailer.git", | |
| 1278 | + "reference": "7ffc1ea296ed14bf8260b6ef11b80208dbadba91" | |
| 1279 | + }, | |
| 1280 | + "dist": { | |
| 1281 | + "type": "zip", | |
| 1282 | + "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/7ffc1ea296ed14bf8260b6ef11b80208dbadba91", | |
| 1283 | + "reference": "7ffc1ea296ed14bf8260b6ef11b80208dbadba91", | |
| 1284 | + "shasum": "" | |
| 1285 | + }, | |
| 1286 | + "require": { | |
| 1287 | + "php": ">=5.3.3" | |
| 1288 | + }, | |
| 1289 | + "require-dev": { | |
| 1290 | + "mockery/mockery": "~0.9.1", | |
| 1291 | + "symfony/phpunit-bridge": "~3.2" | |
| 1292 | + }, | |
| 1293 | + "type": "library", | |
| 1294 | + "extra": { | |
| 1295 | + "branch-alias": { | |
| 1296 | + "dev-master": "5.4-dev" | |
| 1297 | + } | |
| 1298 | + }, | |
| 1299 | + "autoload": { | |
| 1300 | + "files": [ | |
| 1301 | + "lib/swift_required.php" | |
| 1302 | + ] | |
| 1303 | + }, | |
| 1304 | + "notification-url": "https://packagist.org/downloads/", | |
| 1305 | + "license": [ | |
| 1306 | + "MIT" | |
| 1307 | + ], | |
| 1308 | + "authors": [ | |
| 1309 | + { | |
| 1310 | + "name": "Chris Corbyn" | |
| 1311 | + }, | |
| 1312 | + { | |
| 1313 | + "name": "Fabien Potencier", | |
| 1314 | + "email": "fabien@symfony.com" | |
| 1315 | + } | |
| 1316 | + ], | |
| 1317 | + "description": "Swiftmailer, free feature-rich PHP mailer", | |
| 1318 | + "homepage": "https://swiftmailer.symfony.com", | |
| 1319 | + "keywords": [ | |
| 1320 | + "email", | |
| 1321 | + "mail", | |
| 1322 | + "mailer" | |
| 1323 | + ], | |
| 1324 | + "time": "2018-01-23T07:37:21+00:00" | |
| 1325 | + }, | |
| 1326 | + { | |
| 1327 | + "name": "symfony/monolog-bundle", | |
| 1328 | + "version": "v3.1.2", | |
| 1329 | + "source": { | |
| 1330 | + "type": "git", | |
| 1331 | + "url": "https://github.com/symfony/monolog-bundle.git", | |
| 1332 | + "reference": "2b41b8b6d2c6edb1a5494f02f8e4129be2a44784" | |
| 1333 | + }, | |
| 1334 | + "dist": { | |
| 1335 | + "type": "zip", | |
| 1336 | + "url": "https://api.github.com/repos/symfony/monolog-bundle/zipball/2b41b8b6d2c6edb1a5494f02f8e4129be2a44784", | |
| 1337 | + "reference": "2b41b8b6d2c6edb1a5494f02f8e4129be2a44784", | |
| 1338 | + "shasum": "" | |
| 1339 | + }, | |
| 1340 | + "require": { | |
| 1341 | + "monolog/monolog": "~1.22", | |
| 1342 | + "php": ">=5.3.2", | |
| 1343 | + "symfony/config": "~2.7|~3.0|~4.0", | |
| 1344 | + "symfony/dependency-injection": "~2.7|~3.0|~4.0", | |
| 1345 | + "symfony/http-kernel": "~2.7|~3.0|~4.0", | |
| 1346 | + "symfony/monolog-bridge": "~2.7|~3.0|~4.0" | |
| 1347 | + }, | |
| 1348 | + "require-dev": { | |
| 1349 | + "symfony/console": "~2.3|~3.0|~4.0", | |
| 1350 | + "symfony/phpunit-bridge": "^3.3|^4.0", | |
| 1351 | + "symfony/yaml": "~2.3|~3.0|~4.0" | |
| 1352 | + }, | |
| 1353 | + "type": "symfony-bundle", | |
| 1354 | + "extra": { | |
| 1355 | + "branch-alias": { | |
| 1356 | + "dev-master": "3.x-dev" | |
| 1357 | + } | |
| 1358 | + }, | |
| 1359 | + "autoload": { | |
| 1360 | + "psr-4": { | |
| 1361 | + "Symfony\\Bundle\\MonologBundle\\": "" | |
| 1362 | + }, | |
| 1363 | + "exclude-from-classmap": [ | |
| 1364 | + "/Tests/" | |
| 1365 | + ] | |
| 1366 | + }, | |
| 1367 | + "notification-url": "https://packagist.org/downloads/", | |
| 1368 | + "license": [ | |
| 1369 | + "MIT" | |
| 1370 | + ], | |
| 1371 | + "authors": [ | |
| 1372 | + { | |
| 1373 | + "name": "Symfony Community", | |
| 1374 | + "homepage": "http://symfony.com/contributors" | |
| 1375 | + }, | |
| 1376 | + { | |
| 1377 | + "name": "Fabien Potencier", | |
| 1378 | + "email": "fabien@symfony.com" | |
| 1379 | + } | |
| 1380 | + ], | |
| 1381 | + "description": "Symfony MonologBundle", | |
| 1382 | + "homepage": "http://symfony.com", | |
| 1383 | + "keywords": [ | |
| 1384 | + "log", | |
| 1385 | + "logging" | |
| 1386 | + ], | |
| 1387 | + "time": "2017-11-06T16:02:17+00:00" | |
| 1388 | + }, | |
| 1389 | + { | |
| 1390 | + "name": "symfony/polyfill-apcu", | |
| 1391 | + "version": "v1.6.0", | |
| 1392 | + "source": { | |
| 1393 | + "type": "git", | |
| 1394 | + "url": "https://github.com/symfony/polyfill-apcu.git", | |
| 1395 | + "reference": "04f62674339602def515bff4bc6901fc1d4951e8" | |
| 1396 | + }, | |
| 1397 | + "dist": { | |
| 1398 | + "type": "zip", | |
| 1399 | + "url": "https://api.github.com/repos/symfony/polyfill-apcu/zipball/04f62674339602def515bff4bc6901fc1d4951e8", | |
| 1400 | + "reference": "04f62674339602def515bff4bc6901fc1d4951e8", | |
| 1401 | + "shasum": "" | |
| 1402 | + }, | |
| 1403 | + "require": { | |
| 1404 | + "php": ">=5.3.3" | |
| 1405 | + }, | |
| 1406 | + "type": "library", | |
| 1407 | + "extra": { | |
| 1408 | + "branch-alias": { | |
| 1409 | + "dev-master": "1.6-dev" | |
| 1410 | + } | |
| 1411 | + }, | |
| 1412 | + "autoload": { | |
| 1413 | + "psr-4": { | |
| 1414 | + "Symfony\\Polyfill\\Apcu\\": "" | |
| 1415 | + }, | |
| 1416 | + "files": [ | |
| 1417 | + "bootstrap.php" | |
| 1418 | + ] | |
| 1419 | + }, | |
| 1420 | + "notification-url": "https://packagist.org/downloads/", | |
| 1421 | + "license": [ | |
| 1422 | + "MIT" | |
| 1423 | + ], | |
| 1424 | + "authors": [ | |
| 1425 | + { | |
| 1426 | + "name": "Nicolas Grekas", | |
| 1427 | + "email": "p@tchwork.com" | |
| 1428 | + }, | |
| 1429 | + { | |
| 1430 | + "name": "Symfony Community", | |
| 1431 | + "homepage": "https://symfony.com/contributors" | |
| 1432 | + } | |
| 1433 | + ], | |
| 1434 | + "description": "Symfony polyfill backporting apcu_* functions to lower PHP versions", | |
| 1435 | + "homepage": "https://symfony.com", | |
| 1436 | + "keywords": [ | |
| 1437 | + "apcu", | |
| 1438 | + "compatibility", | |
| 1439 | + "polyfill", | |
| 1440 | + "portable", | |
| 1441 | + "shim" | |
| 1442 | + ], | |
| 1443 | + "time": "2017-10-11T12:05:26+00:00" | |
| 1444 | + }, | |
| 1445 | + { | |
| 1446 | + "name": "symfony/polyfill-intl-icu", | |
| 1447 | + "version": "v1.6.0", | |
| 1448 | + "source": { | |
| 1449 | + "type": "git", | |
| 1450 | + "url": "https://github.com/symfony/polyfill-intl-icu.git", | |
| 1451 | + "reference": "d2bb2ef00dd8605d6fbd4db53ed4af1395953497" | |
| 1452 | + }, | |
| 1453 | + "dist": { | |
| 1454 | + "type": "zip", | |
| 1455 | + "url": "https://api.github.com/repos/symfony/polyfill-intl-icu/zipball/d2bb2ef00dd8605d6fbd4db53ed4af1395953497", | |
| 1456 | + "reference": "d2bb2ef00dd8605d6fbd4db53ed4af1395953497", | |
| 1457 | + "shasum": "" | |
| 1458 | + }, | |
| 1459 | + "require": { | |
| 1460 | + "php": ">=5.3.3", | |
| 1461 | + "symfony/intl": "~2.3|~3.0|~4.0" | |
| 1462 | + }, | |
| 1463 | + "suggest": { | |
| 1464 | + "ext-intl": "For best performance" | |
| 1465 | + }, | |
| 1466 | + "type": "library", | |
| 1467 | + "extra": { | |
| 1468 | + "branch-alias": { | |
| 1469 | + "dev-master": "1.6-dev" | |
| 1470 | + } | |
| 1471 | + }, | |
| 1472 | + "autoload": { | |
| 1473 | + "files": [ | |
| 1474 | + "bootstrap.php" | |
| 1475 | + ] | |
| 1476 | + }, | |
| 1477 | + "notification-url": "https://packagist.org/downloads/", | |
| 1478 | + "license": [ | |
| 1479 | + "MIT" | |
| 1480 | + ], | |
| 1481 | + "authors": [ | |
| 1482 | + { | |
| 1483 | + "name": "Nicolas Grekas", | |
| 1484 | + "email": "p@tchwork.com" | |
| 1485 | + }, | |
| 1486 | + { | |
| 1487 | + "name": "Symfony Community", | |
| 1488 | + "homepage": "https://symfony.com/contributors" | |
| 1489 | + } | |
| 1490 | + ], | |
| 1491 | + "description": "Symfony polyfill for intl's ICU-related data and classes", | |
| 1492 | + "homepage": "https://symfony.com", | |
| 1493 | + "keywords": [ | |
| 1494 | + "compatibility", | |
| 1495 | + "icu", | |
| 1496 | + "intl", | |
| 1497 | + "polyfill", | |
| 1498 | + "portable", | |
| 1499 | + "shim" | |
| 1500 | + ], | |
| 1501 | + "time": "2017-10-11T12:05:26+00:00" | |
| 1502 | + }, | |
| 1503 | + { | |
| 1504 | + "name": "symfony/polyfill-mbstring", | |
| 1505 | + "version": "v1.6.0", | |
| 1506 | + "source": { | |
| 1507 | + "type": "git", | |
| 1508 | + "url": "https://github.com/symfony/polyfill-mbstring.git", | |
| 1509 | + "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296" | |
| 1510 | + }, | |
| 1511 | + "dist": { | |
| 1512 | + "type": "zip", | |
| 1513 | + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", | |
| 1514 | + "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", | |
| 1515 | + "shasum": "" | |
| 1516 | + }, | |
| 1517 | + "require": { | |
| 1518 | + "php": ">=5.3.3" | |
| 1519 | + }, | |
| 1520 | + "suggest": { | |
| 1521 | + "ext-mbstring": "For best performance" | |
| 1522 | + }, | |
| 1523 | + "type": "library", | |
| 1524 | + "extra": { | |
| 1525 | + "branch-alias": { | |
| 1526 | + "dev-master": "1.6-dev" | |
| 1527 | + } | |
| 1528 | + }, | |
| 1529 | + "autoload": { | |
| 1530 | + "psr-4": { | |
| 1531 | + "Symfony\\Polyfill\\Mbstring\\": "" | |
| 1532 | + }, | |
| 1533 | + "files": [ | |
| 1534 | + "bootstrap.php" | |
| 1535 | + ] | |
| 1536 | + }, | |
| 1537 | + "notification-url": "https://packagist.org/downloads/", | |
| 1538 | + "license": [ | |
| 1539 | + "MIT" | |
| 1540 | + ], | |
| 1541 | + "authors": [ | |
| 1542 | + { | |
| 1543 | + "name": "Nicolas Grekas", | |
| 1544 | + "email": "p@tchwork.com" | |
| 1545 | + }, | |
| 1546 | + { | |
| 1547 | + "name": "Symfony Community", | |
| 1548 | + "homepage": "https://symfony.com/contributors" | |
| 1549 | + } | |
| 1550 | + ], | |
| 1551 | + "description": "Symfony polyfill for the Mbstring extension", | |
| 1552 | + "homepage": "https://symfony.com", | |
| 1553 | + "keywords": [ | |
| 1554 | + "compatibility", | |
| 1555 | + "mbstring", | |
| 1556 | + "polyfill", | |
| 1557 | + "portable", | |
| 1558 | + "shim" | |
| 1559 | + ], | |
| 1560 | + "time": "2017-10-11T12:05:26+00:00" | |
| 1561 | + }, | |
| 1562 | + { | |
| 1563 | + "name": "symfony/polyfill-php54", | |
| 1564 | + "version": "v1.6.0", | |
| 1565 | + "source": { | |
| 1566 | + "type": "git", | |
| 1567 | + "url": "https://github.com/symfony/polyfill-php54.git", | |
| 1568 | + "reference": "d7810a14b2c6c1aff415e1bb755f611b3d5327bc" | |
| 1569 | + }, | |
| 1570 | + "dist": { | |
| 1571 | + "type": "zip", | |
| 1572 | + "url": "https://api.github.com/repos/symfony/polyfill-php54/zipball/d7810a14b2c6c1aff415e1bb755f611b3d5327bc", | |
| 1573 | + "reference": "d7810a14b2c6c1aff415e1bb755f611b3d5327bc", | |
| 1574 | + "shasum": "" | |
| 1575 | + }, | |
| 1576 | + "require": { | |
| 1577 | + "php": ">=5.3.3" | |
| 1578 | + }, | |
| 1579 | + "type": "library", | |
| 1580 | + "extra": { | |
| 1581 | + "branch-alias": { | |
| 1582 | + "dev-master": "1.6-dev" | |
| 1583 | + } | |
| 1584 | + }, | |
| 1585 | + "autoload": { | |
| 1586 | + "psr-4": { | |
| 1587 | + "Symfony\\Polyfill\\Php54\\": "" | |
| 1588 | + }, | |
| 1589 | + "files": [ | |
| 1590 | + "bootstrap.php" | |
| 1591 | + ], | |
| 1592 | + "classmap": [ | |
| 1593 | + "Resources/stubs" | |
| 1594 | + ] | |
| 1595 | + }, | |
| 1596 | + "notification-url": "https://packagist.org/downloads/", | |
| 1597 | + "license": [ | |
| 1598 | + "MIT" | |
| 1599 | + ], | |
| 1600 | + "authors": [ | |
| 1601 | + { | |
| 1602 | + "name": "Nicolas Grekas", | |
| 1603 | + "email": "p@tchwork.com" | |
| 1604 | + }, | |
| 1605 | + { | |
| 1606 | + "name": "Symfony Community", | |
| 1607 | + "homepage": "https://symfony.com/contributors" | |
| 1608 | + } | |
| 1609 | + ], | |
| 1610 | + "description": "Symfony polyfill backporting some PHP 5.4+ features to lower PHP versions", | |
| 1611 | + "homepage": "https://symfony.com", | |
| 1612 | + "keywords": [ | |
| 1613 | + "compatibility", | |
| 1614 | + "polyfill", | |
| 1615 | + "portable", | |
| 1616 | + "shim" | |
| 1617 | + ], | |
| 1618 | + "time": "2017-10-11T12:05:26+00:00" | |
| 1619 | + }, | |
| 1620 | + { | |
| 1621 | + "name": "symfony/polyfill-php55", | |
| 1622 | + "version": "v1.6.0", | |
| 1623 | + "source": { | |
| 1624 | + "type": "git", | |
| 1625 | + "url": "https://github.com/symfony/polyfill-php55.git", | |
| 1626 | + "reference": "b64e7f0c37ecf144ecc16668936eef94e628fbfd" | |
| 1627 | + }, | |
| 1628 | + "dist": { | |
| 1629 | + "type": "zip", | |
| 1630 | + "url": "https://api.github.com/repos/symfony/polyfill-php55/zipball/b64e7f0c37ecf144ecc16668936eef94e628fbfd", | |
| 1631 | + "reference": "b64e7f0c37ecf144ecc16668936eef94e628fbfd", | |
| 1632 | + "shasum": "" | |
| 1633 | + }, | |
| 1634 | + "require": { | |
| 1635 | + "ircmaxell/password-compat": "~1.0", | |
| 1636 | + "php": ">=5.3.3" | |
| 1637 | + }, | |
| 1638 | + "type": "library", | |
| 1639 | + "extra": { | |
| 1640 | + "branch-alias": { | |
| 1641 | + "dev-master": "1.6-dev" | |
| 1642 | + } | |
| 1643 | + }, | |
| 1644 | + "autoload": { | |
| 1645 | + "psr-4": { | |
| 1646 | + "Symfony\\Polyfill\\Php55\\": "" | |
| 1647 | + }, | |
| 1648 | + "files": [ | |
| 1649 | + "bootstrap.php" | |
| 1650 | + ] | |
| 1651 | + }, | |
| 1652 | + "notification-url": "https://packagist.org/downloads/", | |
| 1653 | + "license": [ | |
| 1654 | + "MIT" | |
| 1655 | + ], | |
| 1656 | + "authors": [ | |
| 1657 | + { | |
| 1658 | + "name": "Nicolas Grekas", | |
| 1659 | + "email": "p@tchwork.com" | |
| 1660 | + }, | |
| 1661 | + { | |
| 1662 | + "name": "Symfony Community", | |
| 1663 | + "homepage": "https://symfony.com/contributors" | |
| 1664 | + } | |
| 1665 | + ], | |
| 1666 | + "description": "Symfony polyfill backporting some PHP 5.5+ features to lower PHP versions", | |
| 1667 | + "homepage": "https://symfony.com", | |
| 1668 | + "keywords": [ | |
| 1669 | + "compatibility", | |
| 1670 | + "polyfill", | |
| 1671 | + "portable", | |
| 1672 | + "shim" | |
| 1673 | + ], | |
| 1674 | + "time": "2017-10-11T12:05:26+00:00" | |
| 1675 | + }, | |
| 1676 | + { | |
| 1677 | + "name": "symfony/polyfill-php56", | |
| 1678 | + "version": "v1.6.0", | |
| 1679 | + "source": { | |
| 1680 | + "type": "git", | |
| 1681 | + "url": "https://github.com/symfony/polyfill-php56.git", | |
| 1682 | + "reference": "265fc96795492430762c29be291a371494ba3a5b" | |
| 1683 | + }, | |
| 1684 | + "dist": { | |
| 1685 | + "type": "zip", | |
| 1686 | + "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/265fc96795492430762c29be291a371494ba3a5b", | |
| 1687 | + "reference": "265fc96795492430762c29be291a371494ba3a5b", | |
| 1688 | + "shasum": "" | |
| 1689 | + }, | |
| 1690 | + "require": { | |
| 1691 | + "php": ">=5.3.3", | |
| 1692 | + "symfony/polyfill-util": "~1.0" | |
| 1693 | + }, | |
| 1694 | + "type": "library", | |
| 1695 | + "extra": { | |
| 1696 | + "branch-alias": { | |
| 1697 | + "dev-master": "1.6-dev" | |
| 1698 | + } | |
| 1699 | + }, | |
| 1700 | + "autoload": { | |
| 1701 | + "psr-4": { | |
| 1702 | + "Symfony\\Polyfill\\Php56\\": "" | |
| 1703 | + }, | |
| 1704 | + "files": [ | |
| 1705 | + "bootstrap.php" | |
| 1706 | + ] | |
| 1707 | + }, | |
| 1708 | + "notification-url": "https://packagist.org/downloads/", | |
| 1709 | + "license": [ | |
| 1710 | + "MIT" | |
| 1711 | + ], | |
| 1712 | + "authors": [ | |
| 1713 | + { | |
| 1714 | + "name": "Nicolas Grekas", | |
| 1715 | + "email": "p@tchwork.com" | |
| 1716 | + }, | |
| 1717 | + { | |
| 1718 | + "name": "Symfony Community", | |
| 1719 | + "homepage": "https://symfony.com/contributors" | |
| 1720 | + } | |
| 1721 | + ], | |
| 1722 | + "description": "Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions", | |
| 1723 | + "homepage": "https://symfony.com", | |
| 1724 | + "keywords": [ | |
| 1725 | + "compatibility", | |
| 1726 | + "polyfill", | |
| 1727 | + "portable", | |
| 1728 | + "shim" | |
| 1729 | + ], | |
| 1730 | + "time": "2017-10-11T12:05:26+00:00" | |
| 1731 | + }, | |
| 1732 | + { | |
| 1733 | + "name": "symfony/polyfill-php70", | |
| 1734 | + "version": "v1.6.0", | |
| 1735 | + "source": { | |
| 1736 | + "type": "git", | |
| 1737 | + "url": "https://github.com/symfony/polyfill-php70.git", | |
| 1738 | + "reference": "0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff" | |
| 1739 | + }, | |
| 1740 | + "dist": { | |
| 1741 | + "type": "zip", | |
| 1742 | + "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff", | |
| 1743 | + "reference": "0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff", | |
| 1744 | + "shasum": "" | |
| 1745 | + }, | |
| 1746 | + "require": { | |
| 1747 | + "paragonie/random_compat": "~1.0|~2.0", | |
| 1748 | + "php": ">=5.3.3" | |
| 1749 | + }, | |
| 1750 | + "type": "library", | |
| 1751 | + "extra": { | |
| 1752 | + "branch-alias": { | |
| 1753 | + "dev-master": "1.6-dev" | |
| 1754 | + } | |
| 1755 | + }, | |
| 1756 | + "autoload": { | |
| 1757 | + "psr-4": { | |
| 1758 | + "Symfony\\Polyfill\\Php70\\": "" | |
| 1759 | + }, | |
| 1760 | + "files": [ | |
| 1761 | + "bootstrap.php" | |
| 1762 | + ], | |
| 1763 | + "classmap": [ | |
| 1764 | + "Resources/stubs" | |
| 1765 | + ] | |
| 1766 | + }, | |
| 1767 | + "notification-url": "https://packagist.org/downloads/", | |
| 1768 | + "license": [ | |
| 1769 | + "MIT" | |
| 1770 | + ], | |
| 1771 | + "authors": [ | |
| 1772 | + { | |
| 1773 | + "name": "Nicolas Grekas", | |
| 1774 | + "email": "p@tchwork.com" | |
| 1775 | + }, | |
| 1776 | + { | |
| 1777 | + "name": "Symfony Community", | |
| 1778 | + "homepage": "https://symfony.com/contributors" | |
| 1779 | + } | |
| 1780 | + ], | |
| 1781 | + "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", | |
| 1782 | + "homepage": "https://symfony.com", | |
| 1783 | + "keywords": [ | |
| 1784 | + "compatibility", | |
| 1785 | + "polyfill", | |
| 1786 | + "portable", | |
| 1787 | + "shim" | |
| 1788 | + ], | |
| 1789 | + "time": "2017-10-11T12:05:26+00:00" | |
| 1790 | + }, | |
| 1791 | + { | |
| 1792 | + "name": "symfony/polyfill-util", | |
| 1793 | + "version": "v1.6.0", | |
| 1794 | + "source": { | |
| 1795 | + "type": "git", | |
| 1796 | + "url": "https://github.com/symfony/polyfill-util.git", | |
| 1797 | + "reference": "6e719200c8e540e0c0effeb31f96bdb344b94176" | |
| 1798 | + }, | |
| 1799 | + "dist": { | |
| 1800 | + "type": "zip", | |
| 1801 | + "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/6e719200c8e540e0c0effeb31f96bdb344b94176", | |
| 1802 | + "reference": "6e719200c8e540e0c0effeb31f96bdb344b94176", | |
| 1803 | + "shasum": "" | |
| 1804 | + }, | |
| 1805 | + "require": { | |
| 1806 | + "php": ">=5.3.3" | |
| 1807 | + }, | |
| 1808 | + "type": "library", | |
| 1809 | + "extra": { | |
| 1810 | + "branch-alias": { | |
| 1811 | + "dev-master": "1.6-dev" | |
| 1812 | + } | |
| 1813 | + }, | |
| 1814 | + "autoload": { | |
| 1815 | + "psr-4": { | |
| 1816 | + "Symfony\\Polyfill\\Util\\": "" | |
| 1817 | + } | |
| 1818 | + }, | |
| 1819 | + "notification-url": "https://packagist.org/downloads/", | |
| 1820 | + "license": [ | |
| 1821 | + "MIT" | |
| 1822 | + ], | |
| 1823 | + "authors": [ | |
| 1824 | + { | |
| 1825 | + "name": "Nicolas Grekas", | |
| 1826 | + "email": "p@tchwork.com" | |
| 1827 | + }, | |
| 1828 | + { | |
| 1829 | + "name": "Symfony Community", | |
| 1830 | + "homepage": "https://symfony.com/contributors" | |
| 1831 | + } | |
| 1832 | + ], | |
| 1833 | + "description": "Symfony utilities for portability of PHP codes", | |
| 1834 | + "homepage": "https://symfony.com", | |
| 1835 | + "keywords": [ | |
| 1836 | + "compat", | |
| 1837 | + "compatibility", | |
| 1838 | + "polyfill", | |
| 1839 | + "shim" | |
| 1840 | + ], | |
| 1841 | + "time": "2017-10-11T12:05:26+00:00" | |
| 1842 | + }, | |
| 1843 | + { | |
| 1844 | + "name": "symfony/security-acl", | |
| 1845 | + "version": "v3.0.1", | |
| 1846 | + "source": { | |
| 1847 | + "type": "git", | |
| 1848 | + "url": "https://github.com/symfony/security-acl.git", | |
| 1849 | + "reference": "ab4dfe2d95e038cd367dd04604487b0a3359bcff" | |
| 1850 | + }, | |
| 1851 | + "dist": { | |
| 1852 | + "type": "zip", | |
| 1853 | + "url": "https://api.github.com/repos/symfony/security-acl/zipball/ab4dfe2d95e038cd367dd04604487b0a3359bcff", | |
| 1854 | + "reference": "ab4dfe2d95e038cd367dd04604487b0a3359bcff", | |
| 1855 | + "shasum": "" | |
| 1856 | + }, | |
| 1857 | + "require": { | |
| 1858 | + "php": ">=5.5.9", | |
| 1859 | + "symfony/security-core": "~2.8|~3.0|~4.0" | |
| 1860 | + }, | |
| 1861 | + "require-dev": { | |
| 1862 | + "doctrine/common": "~2.2", | |
| 1863 | + "doctrine/dbal": "~2.2", | |
| 1864 | + "psr/log": "~1.0", | |
| 1865 | + "symfony/phpunit-bridge": "~2.8|~3.0|~4.0" | |
| 1866 | + }, | |
| 1867 | + "suggest": { | |
| 1868 | + "doctrine/dbal": "For using the built-in ACL implementation", | |
| 1869 | + "symfony/class-loader": "For using the ACL generateSql script", | |
| 1870 | + "symfony/finder": "For using the ACL generateSql script" | |
| 1871 | + }, | |
| 1872 | + "type": "library", | |
| 1873 | + "extra": { | |
| 1874 | + "branch-alias": { | |
| 1875 | + "dev-master": "3.0-dev" | |
| 1876 | + } | |
| 1877 | + }, | |
| 1878 | + "autoload": { | |
| 1879 | + "psr-4": { | |
| 1880 | + "Symfony\\Component\\Security\\Acl\\": "" | |
| 1881 | + }, | |
| 1882 | + "exclude-from-classmap": [ | |
| 1883 | + "/Tests/" | |
| 1884 | + ] | |
| 1885 | + }, | |
| 1886 | + "notification-url": "https://packagist.org/downloads/", | |
| 1887 | + "license": [ | |
| 1888 | + "MIT" | |
| 1889 | + ], | |
| 1890 | + "authors": [ | |
| 1891 | + { | |
| 1892 | + "name": "Fabien Potencier", | |
| 1893 | + "email": "fabien@symfony.com" | |
| 1894 | + }, | |
| 1895 | + { | |
| 1896 | + "name": "Symfony Community", | |
| 1897 | + "homepage": "https://symfony.com/contributors" | |
| 1898 | + } | |
| 1899 | + ], | |
| 1900 | + "description": "Symfony Security Component - ACL (Access Control List)", | |
| 1901 | + "homepage": "https://symfony.com", | |
| 1902 | + "time": "2017-07-21T06:01:18+00:00" | |
| 1903 | + }, | |
| 1904 | + { | |
| 1905 | + "name": "symfony/swiftmailer-bundle", | |
| 1906 | + "version": "v2.6.7", | |
| 1907 | + "source": { | |
| 1908 | + "type": "git", | |
| 1909 | + "url": "https://github.com/symfony/swiftmailer-bundle.git", | |
| 1910 | + "reference": "c4808f5169efc05567be983909d00f00521c53ec" | |
| 1911 | + }, | |
| 1912 | + "dist": { | |
| 1913 | + "type": "zip", | |
| 1914 | + "url": "https://api.github.com/repos/symfony/swiftmailer-bundle/zipball/c4808f5169efc05567be983909d00f00521c53ec", | |
| 1915 | + "reference": "c4808f5169efc05567be983909d00f00521c53ec", | |
| 1916 | + "shasum": "" | |
| 1917 | + }, | |
| 1918 | + "require": { | |
| 1919 | + "php": ">=5.3.2", | |
| 1920 | + "swiftmailer/swiftmailer": "~4.2|~5.0", | |
| 1921 | + "symfony/config": "~2.7|~3.0", | |
| 1922 | + "symfony/dependency-injection": "~2.7|~3.0", | |
| 1923 | + "symfony/http-kernel": "~2.7|~3.0" | |
| 1924 | + }, | |
| 1925 | + "require-dev": { | |
| 1926 | + "symfony/console": "~2.7|~3.0", | |
| 1927 | + "symfony/framework-bundle": "~2.7|~3.0", | |
| 1928 | + "symfony/phpunit-bridge": "~3.3@dev", | |
| 1929 | + "symfony/yaml": "~2.7|~3.0" | |
| 1930 | + }, | |
| 1931 | + "suggest": { | |
| 1932 | + "psr/log": "Allows logging" | |
| 1933 | + }, | |
| 1934 | + "type": "symfony-bundle", | |
| 1935 | + "extra": { | |
| 1936 | + "branch-alias": { | |
| 1937 | + "dev-master": "2.6-dev" | |
| 1938 | + } | |
| 1939 | + }, | |
| 1940 | + "autoload": { | |
| 1941 | + "psr-4": { | |
| 1942 | + "Symfony\\Bundle\\SwiftmailerBundle\\": "" | |
| 1943 | + } | |
| 1944 | + }, | |
| 1945 | + "notification-url": "https://packagist.org/downloads/", | |
| 1946 | + "license": [ | |
| 1947 | + "MIT" | |
| 1948 | + ], | |
| 1949 | + "authors": [ | |
| 1950 | + { | |
| 1951 | + "name": "Symfony Community", | |
| 1952 | + "homepage": "http://symfony.com/contributors" | |
| 1953 | + }, | |
| 1954 | + { | |
| 1955 | + "name": "Fabien Potencier", | |
| 1956 | + "email": "fabien@symfony.com" | |
| 1957 | + } | |
| 1958 | + ], | |
| 1959 | + "description": "Symfony SwiftmailerBundle", | |
| 1960 | + "homepage": "http://symfony.com", | |
| 1961 | + "time": "2017-10-19T01:06:41+00:00" | |
| 1962 | + }, | |
| 1963 | + { | |
| 1964 | + "name": "symfony/symfony", | |
| 1965 | + "version": "v2.8.33", | |
| 1966 | + "source": { | |
| 1967 | + "type": "git", | |
| 1968 | + "url": "https://github.com/symfony/symfony.git", | |
| 1969 | + "reference": "a3bb63a81e5cb9bec9f3c8f30405d3107411ba8c" | |
| 1970 | + }, | |
| 1971 | + "dist": { | |
| 1972 | + "type": "zip", | |
| 1973 | + "url": "https://api.github.com/repos/symfony/symfony/zipball/a3bb63a81e5cb9bec9f3c8f30405d3107411ba8c", | |
| 1974 | + "reference": "a3bb63a81e5cb9bec9f3c8f30405d3107411ba8c", | |
| 1975 | + "shasum": "" | |
| 1976 | + }, | |
| 1977 | + "require": { | |
| 1978 | + "doctrine/common": "~2.4", | |
| 1979 | + "ext-xml": "*", | |
| 1980 | + "php": ">=5.3.9", | |
| 1981 | + "psr/log": "~1.0", | |
| 1982 | + "symfony/polyfill-apcu": "~1.1", | |
| 1983 | + "symfony/polyfill-intl-icu": "~1.0", | |
| 1984 | + "symfony/polyfill-mbstring": "~1.0", | |
| 1985 | + "symfony/polyfill-php54": "~1.0", | |
| 1986 | + "symfony/polyfill-php55": "~1.0", | |
| 1987 | + "symfony/polyfill-php56": "~1.0", | |
| 1988 | + "symfony/polyfill-php70": "~1.0", | |
| 1989 | + "symfony/polyfill-util": "~1.0", | |
| 1990 | + "symfony/security-acl": "~2.7|~3.0.0", | |
| 1991 | + "twig/twig": "~1.34|~2.4" | |
| 1992 | + }, | |
| 1993 | + "conflict": { | |
| 1994 | + "phpdocumentor/reflection": "<1.0.7", | |
| 1995 | + "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0" | |
| 1996 | + }, | |
| 1997 | + "replace": { | |
| 1998 | + "symfony/asset": "self.version", | |
| 1999 | + "symfony/browser-kit": "self.version", | |
| 2000 | + "symfony/class-loader": "self.version", | |
| 2001 | + "symfony/config": "self.version", | |
| 2002 | + "symfony/console": "self.version", | |
| 2003 | + "symfony/css-selector": "self.version", | |
| 2004 | + "symfony/debug": "self.version", | |
| 2005 | + "symfony/debug-bundle": "self.version", | |
| 2006 | + "symfony/dependency-injection": "self.version", | |
| 2007 | + "symfony/doctrine-bridge": "self.version", | |
| 2008 | + "symfony/dom-crawler": "self.version", | |
| 2009 | + "symfony/event-dispatcher": "self.version", | |
| 2010 | + "symfony/expression-language": "self.version", | |
| 2011 | + "symfony/filesystem": "self.version", | |
| 2012 | + "symfony/finder": "self.version", | |
| 2013 | + "symfony/form": "self.version", | |
| 2014 | + "symfony/framework-bundle": "self.version", | |
| 2015 | + "symfony/http-foundation": "self.version", | |
| 2016 | + "symfony/http-kernel": "self.version", | |
| 2017 | + "symfony/intl": "self.version", | |
| 2018 | + "symfony/ldap": "self.version", | |
| 2019 | + "symfony/locale": "self.version", | |
| 2020 | + "symfony/monolog-bridge": "self.version", | |
| 2021 | + "symfony/options-resolver": "self.version", | |
| 2022 | + "symfony/process": "self.version", | |
| 2023 | + "symfony/property-access": "self.version", | |
| 2024 | + "symfony/property-info": "self.version", | |
| 2025 | + "symfony/proxy-manager-bridge": "self.version", | |
| 2026 | + "symfony/routing": "self.version", | |
| 2027 | + "symfony/security": "self.version", | |
| 2028 | + "symfony/security-bundle": "self.version", | |
| 2029 | + "symfony/security-core": "self.version", | |
| 2030 | + "symfony/security-csrf": "self.version", | |
| 2031 | + "symfony/security-guard": "self.version", | |
| 2032 | + "symfony/security-http": "self.version", | |
| 2033 | + "symfony/serializer": "self.version", | |
| 2034 | + "symfony/stopwatch": "self.version", | |
| 2035 | + "symfony/swiftmailer-bridge": "self.version", | |
| 2036 | + "symfony/templating": "self.version", | |
| 2037 | + "symfony/translation": "self.version", | |
| 2038 | + "symfony/twig-bridge": "self.version", | |
| 2039 | + "symfony/twig-bundle": "self.version", | |
| 2040 | + "symfony/validator": "self.version", | |
| 2041 | + "symfony/var-dumper": "self.version", | |
| 2042 | + "symfony/web-profiler-bundle": "self.version", | |
| 2043 | + "symfony/yaml": "self.version" | |
| 2044 | + }, | |
| 2045 | + "require-dev": { | |
| 2046 | + "doctrine/annotations": "~1.0", | |
| 2047 | + "doctrine/data-fixtures": "1.0.*", | |
| 2048 | + "doctrine/dbal": "~2.4", | |
| 2049 | + "doctrine/doctrine-bundle": "~1.2", | |
| 2050 | + "doctrine/orm": "~2.4,>=2.4.5", | |
| 2051 | + "egulias/email-validator": "~1.2,>=1.2.1", | |
| 2052 | + "monolog/monolog": "~1.11", | |
| 2053 | + "ocramius/proxy-manager": "~0.4|~1.0|~2.0", | |
| 2054 | + "phpdocumentor/reflection": "^1.0.7", | |
| 2055 | + "sensio/framework-extra-bundle": "^3.0.2", | |
| 2056 | + "symfony/phpunit-bridge": "~3.4|~4.0" | |
| 2057 | + }, | |
| 2058 | + "type": "library", | |
| 2059 | + "extra": { | |
| 2060 | + "branch-alias": { | |
| 2061 | + "dev-master": "2.8-dev" | |
| 2062 | + } | |
| 2063 | + }, | |
| 2064 | + "autoload": { | |
| 2065 | + "psr-4": { | |
| 2066 | + "Symfony\\Bridge\\Doctrine\\": "src/Symfony/Bridge/Doctrine/", | |
| 2067 | + "Symfony\\Bridge\\Monolog\\": "src/Symfony/Bridge/Monolog/", | |
| 2068 | + "Symfony\\Bridge\\ProxyManager\\": "src/Symfony/Bridge/ProxyManager/", | |
| 2069 | + "Symfony\\Bridge\\Swiftmailer\\": "src/Symfony/Bridge/Swiftmailer/", | |
| 2070 | + "Symfony\\Bridge\\Twig\\": "src/Symfony/Bridge/Twig/", | |
| 2071 | + "Symfony\\Bundle\\": "src/Symfony/Bundle/", | |
| 2072 | + "Symfony\\Component\\": "src/Symfony/Component/" | |
| 2073 | + }, | |
| 2074 | + "classmap": [ | |
| 2075 | + "src/Symfony/Component/Intl/Resources/stubs" | |
| 2076 | + ], | |
| 2077 | + "exclude-from-classmap": [ | |
| 2078 | + "**/Tests/" | |
| 2079 | + ] | |
| 2080 | + }, | |
| 2081 | + "notification-url": "https://packagist.org/downloads/", | |
| 2082 | + "license": [ | |
| 2083 | + "MIT" | |
| 2084 | + ], | |
| 2085 | + "authors": [ | |
| 2086 | + { | |
| 2087 | + "name": "Fabien Potencier", | |
| 2088 | + "email": "fabien@symfony.com" | |
| 2089 | + }, | |
| 2090 | + { | |
| 2091 | + "name": "Symfony Community", | |
| 2092 | + "homepage": "https://symfony.com/contributors" | |
| 2093 | + } | |
| 2094 | + ], | |
| 2095 | + "description": "The Symfony PHP framework", | |
| 2096 | + "homepage": "https://symfony.com", | |
| 2097 | + "keywords": [ | |
| 2098 | + "framework" | |
| 2099 | + ], | |
| 2100 | + "time": "2018-01-05T06:19:59+00:00" | |
| 2101 | + }, | |
| 2102 | + { | |
| 2103 | + "name": "twig/twig", | |
| 2104 | + "version": "v1.35.0", | |
| 2105 | + "source": { | |
| 2106 | + "type": "git", | |
| 2107 | + "url": "https://github.com/twigphp/Twig.git", | |
| 2108 | + "reference": "daa657073e55b0a78cce8fdd22682fddecc6385f" | |
| 2109 | + }, | |
| 2110 | + "dist": { | |
| 2111 | + "type": "zip", | |
| 2112 | + "url": "https://api.github.com/repos/twigphp/Twig/zipball/daa657073e55b0a78cce8fdd22682fddecc6385f", | |
| 2113 | + "reference": "daa657073e55b0a78cce8fdd22682fddecc6385f", | |
| 2114 | + "shasum": "" | |
| 2115 | + }, | |
| 2116 | + "require": { | |
| 2117 | + "php": ">=5.3.3" | |
| 2118 | + }, | |
| 2119 | + "require-dev": { | |
| 2120 | + "psr/container": "^1.0", | |
| 2121 | + "symfony/debug": "~2.7", | |
| 2122 | + "symfony/phpunit-bridge": "~3.3@dev" | |
| 2123 | + }, | |
| 2124 | + "type": "library", | |
| 2125 | + "extra": { | |
| 2126 | + "branch-alias": { | |
| 2127 | + "dev-master": "1.35-dev" | |
| 2128 | + } | |
| 2129 | + }, | |
| 2130 | + "autoload": { | |
| 2131 | + "psr-0": { | |
| 2132 | + "Twig_": "lib/" | |
| 2133 | + }, | |
| 2134 | + "psr-4": { | |
| 2135 | + "Twig\\": "src/" | |
| 2136 | + } | |
| 2137 | + }, | |
| 2138 | + "notification-url": "https://packagist.org/downloads/", | |
| 2139 | + "license": [ | |
| 2140 | + "BSD-3-Clause" | |
| 2141 | + ], | |
| 2142 | + "authors": [ | |
| 2143 | + { | |
| 2144 | + "name": "Fabien Potencier", | |
| 2145 | + "email": "fabien@symfony.com", | |
| 2146 | + "homepage": "http://fabien.potencier.org", | |
| 2147 | + "role": "Lead Developer" | |
| 2148 | + }, | |
| 2149 | + { | |
| 2150 | + "name": "Armin Ronacher", | |
| 2151 | + "email": "armin.ronacher@active-4.com", | |
| 2152 | + "role": "Project Founder" | |
| 2153 | + }, | |
| 2154 | + { | |
| 2155 | + "name": "Twig Team", | |
| 2156 | + "homepage": "http://twig.sensiolabs.org/contributors", | |
| 2157 | + "role": "Contributors" | |
| 2158 | + } | |
| 2159 | + ], | |
| 2160 | + "description": "Twig, the flexible, fast, and secure template language for PHP", | |
| 2161 | + "homepage": "http://twig.sensiolabs.org", | |
| 2162 | + "keywords": [ | |
| 2163 | + "templating" | |
| 2164 | + ], | |
| 2165 | + "time": "2017-09-27T18:06:46+00:00" | |
| 2166 | + } | |
| 2167 | + ], | |
| 2168 | + "packages-dev": [ | |
| 2169 | + { | |
| 2170 | + "name": "sensio/generator-bundle", | |
| 2171 | + "version": "v3.1.7", | |
| 2172 | + "source": { | |
| 2173 | + "type": "git", | |
| 2174 | + "url": "https://github.com/sensiolabs/SensioGeneratorBundle.git", | |
| 2175 | + "reference": "28cbaa244bd0816fd8908b93f90380bcd7b67a65" | |
| 2176 | + }, | |
| 2177 | + "dist": { | |
| 2178 | + "type": "zip", | |
| 2179 | + "url": "https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/zipball/28cbaa244bd0816fd8908b93f90380bcd7b67a65", | |
| 2180 | + "reference": "28cbaa244bd0816fd8908b93f90380bcd7b67a65", | |
| 2181 | + "shasum": "" | |
| 2182 | + }, | |
| 2183 | + "require": { | |
| 2184 | + "symfony/console": "~2.7|~3.0", | |
| 2185 | + "symfony/framework-bundle": "~2.7|~3.0", | |
| 2186 | + "symfony/process": "~2.7|~3.0", | |
| 2187 | + "symfony/yaml": "~2.7|~3.0", | |
| 2188 | + "twig/twig": "^1.28.2|^2.0" | |
| 2189 | + }, | |
| 2190 | + "require-dev": { | |
| 2191 | + "doctrine/orm": "~2.4", | |
| 2192 | + "symfony/doctrine-bridge": "~2.7|~3.0", | |
| 2193 | + "symfony/filesystem": "~2.7|~3.0", | |
| 2194 | + "symfony/phpunit-bridge": "^3.3" | |
| 2195 | + }, | |
| 2196 | + "type": "symfony-bundle", | |
| 2197 | + "extra": { | |
| 2198 | + "branch-alias": { | |
| 2199 | + "dev-master": "3.1.x-dev" | |
| 2200 | + } | |
| 2201 | + }, | |
| 2202 | + "autoload": { | |
| 2203 | + "psr-4": { | |
| 2204 | + "Sensio\\Bundle\\GeneratorBundle\\": "" | |
| 2205 | + }, | |
| 2206 | + "exclude-from-classmap": [ | |
| 2207 | + "/Tests/" | |
| 2208 | + ] | |
| 2209 | + }, | |
| 2210 | + "notification-url": "https://packagist.org/downloads/", | |
| 2211 | + "license": [ | |
| 2212 | + "MIT" | |
| 2213 | + ], | |
| 2214 | + "authors": [ | |
| 2215 | + { | |
| 2216 | + "name": "Fabien Potencier", | |
| 2217 | + "email": "fabien@symfony.com" | |
| 2218 | + } | |
| 2219 | + ], | |
| 2220 | + "description": "This bundle generates code for you", | |
| 2221 | + "time": "2017-12-07T15:36:41+00:00" | |
| 2222 | + }, | |
| 2223 | + { | |
| 2224 | + "name": "symfony/phpunit-bridge", | |
| 2225 | + "version": "v2.8.33", | |
| 2226 | + "source": { | |
| 2227 | + "type": "git", | |
| 2228 | + "url": "https://github.com/symfony/phpunit-bridge.git", | |
| 2229 | + "reference": "13cdb256a345cf5b05ffa4b5fba0ee3c3902619c" | |
| 2230 | + }, | |
| 2231 | + "dist": { | |
| 2232 | + "type": "zip", | |
| 2233 | + "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/13cdb256a345cf5b05ffa4b5fba0ee3c3902619c", | |
| 2234 | + "reference": "13cdb256a345cf5b05ffa4b5fba0ee3c3902619c", | |
| 2235 | + "shasum": "" | |
| 2236 | + }, | |
| 2237 | + "require": { | |
| 2238 | + "php": ">=5.3.3" | |
| 2239 | + }, | |
| 2240 | + "conflict": { | |
| 2241 | + "phpunit/phpunit": ">=6.0" | |
| 2242 | + }, | |
| 2243 | + "suggest": { | |
| 2244 | + "symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader" | |
| 2245 | + }, | |
| 2246 | + "type": "symfony-bridge", | |
| 2247 | + "extra": { | |
| 2248 | + "branch-alias": { | |
| 2249 | + "dev-master": "2.8-dev" | |
| 2250 | + } | |
| 2251 | + }, | |
| 2252 | + "autoload": { | |
| 2253 | + "files": [ | |
| 2254 | + "bootstrap.php" | |
| 2255 | + ], | |
| 2256 | + "psr-4": { | |
| 2257 | + "Symfony\\Bridge\\PhpUnit\\": "" | |
| 2258 | + }, | |
| 2259 | + "exclude-from-classmap": [ | |
| 2260 | + "/Tests/" | |
| 2261 | + ] | |
| 2262 | + }, | |
| 2263 | + "notification-url": "https://packagist.org/downloads/", | |
| 2264 | + "license": [ | |
| 2265 | + "MIT" | |
| 2266 | + ], | |
| 2267 | + "authors": [ | |
| 2268 | + { | |
| 2269 | + "name": "Nicolas Grekas", | |
| 2270 | + "email": "p@tchwork.com" | |
| 2271 | + }, | |
| 2272 | + { | |
| 2273 | + "name": "Symfony Community", | |
| 2274 | + "homepage": "https://symfony.com/contributors" | |
| 2275 | + } | |
| 2276 | + ], | |
| 2277 | + "description": "Symfony PHPUnit Bridge", | |
| 2278 | + "homepage": "https://symfony.com", | |
| 2279 | + "time": "2018-01-03T07:36:31+00:00" | |
| 2280 | + } | |
| 2281 | + ], | |
| 2282 | + "aliases": [], | |
| 2283 | + "minimum-stability": "stable", | |
| 2284 | + "stability-flags": [], | |
| 2285 | + "prefer-stable": false, | |
| 2286 | + "prefer-lowest": false, | |
| 2287 | + "platform": { | |
| 2288 | + "php": ">=5.3.9" | |
| 2289 | + }, | |
| 2290 | + "platform-dev": [] | |
| 2291 | +} | ... | ... |
src/.htaccess
src/AppBundle/AppBundle.php
src/AppBundle/Controller/DefaultController.php
| ... | ... | @@ -0,0 +1,21 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace AppBundle\Controller; | |
| 4 | + | |
| 5 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
| 6 | +use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
| 7 | +use Symfony\Component\HttpFoundation\Request; | |
| 8 | + | |
| 9 | +class DefaultController extends Controller | |
| 10 | +{ | |
| 11 | + /** | |
| 12 | + * @Route("/", name="homepage") | |
| 13 | + */ | |
| 14 | + public function indexAction(Request $request) | |
| 15 | + { | |
| 16 | + // replace this example code with whatever you need | |
| 17 | + return $this->render('default/index.html.twig', array( | |
| 18 | + 'base_dir' => realpath($this->container->getParameter('kernel.root_dir').'/..').DIRECTORY_SEPARATOR, | |
| 19 | + )); | |
| 20 | + } | |
| 21 | +} | ... | ... |
src/AppBundle/Tests/Controller/DefaultControllerTest.php
| ... | ... | @@ -0,0 +1,18 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace AppBundle\Tests\Controller; | |
| 4 | + | |
| 5 | +use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | |
| 6 | + | |
| 7 | +class DefaultControllerTest extends WebTestCase | |
| 8 | +{ | |
| 9 | + public function testIndex() | |
| 10 | + { | |
| 11 | + $client = static::createClient(); | |
| 12 | + | |
| 13 | + $crawler = $client->request('GET', '/'); | |
| 14 | + | |
| 15 | + $this->assertEquals(200, $client->getResponse()->getStatusCode()); | |
| 16 | + $this->assertContains('Welcome to Symfony', $crawler->filter('#container h1')->text()); | |
| 17 | + } | |
| 18 | +} | ... | ... |
src/UBV/PracticaBundle/Controller/DefaultController.php
| ... | ... | @@ -0,0 +1,17 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\PracticaBundle\Controller; | |
| 4 | + | |
| 5 | +use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
| 6 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
| 7 | + | |
| 8 | +class DefaultController extends Controller | |
| 9 | +{ | |
| 10 | + /** | |
| 11 | + * @Route("/") | |
| 12 | + */ | |
| 13 | + public function indexAction() | |
| 14 | + { | |
| 15 | + return $this->render('UBVPracticaBundle:Default:index.html.twig'); | |
| 16 | + } | |
| 17 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/Aldea.php
| ... | ... | @@ -0,0 +1,497 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\Aldea | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AldeaRepository") | |
| 12 | + * @ORM\Table(name="aldea", indexes={@ORM\Index(name="fk_aldea_aldea_tipo_idx", columns={"aldea_tipo_id"}), @ORM\Index(name="fk_aldea_ambiente1_idx", columns={"ambiente_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="codigo_sucre_UNIQUE", columns={"codigo_sucre"}), @ORM\UniqueConstraint(name="id_aldea_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class Aldea | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="aldea_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="string", length=70) | |
| 26 | + */ | |
| 27 | + protected $descripcion; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\Column(type="string", length=15, nullable=true) | |
| 31 | + */ | |
| 32 | + protected $codigo_sucre; | |
| 33 | + | |
| 34 | + /** | |
| 35 | + * @ORM\Column(type="string", length=15, nullable=true) | |
| 36 | + */ | |
| 37 | + protected $codigo_aldea; | |
| 38 | + | |
| 39 | + /** | |
| 40 | + * @ORM\Column(type="string", length=2) | |
| 41 | + */ | |
| 42 | + protected $estatus; | |
| 43 | + | |
| 44 | + /** | |
| 45 | + * @ORM\OneToMany(targetEntity="AldeaMallaCurricula", mappedBy="aldea") | |
| 46 | + * @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false) | |
| 47 | + */ | |
| 48 | + protected $aldeaMallaCurriculas; | |
| 49 | + | |
| 50 | + /** | |
| 51 | + * @ORM\OneToMany(targetEntity="AldeaPrograma", mappedBy="aldea") | |
| 52 | + * @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false) | |
| 53 | + */ | |
| 54 | + protected $aldeaProgramas; | |
| 55 | + | |
| 56 | + /** | |
| 57 | + * @ORM\OneToMany(targetEntity="AldeaTelefono", mappedBy="aldea") | |
| 58 | + * @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false) | |
| 59 | + */ | |
| 60 | + protected $aldeaTelefonos; | |
| 61 | + | |
| 62 | + /** | |
| 63 | + * @ORM\OneToMany(targetEntity="Aspirante", mappedBy="aldea") | |
| 64 | + * @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false) | |
| 65 | + */ | |
| 66 | + protected $aspirantes; | |
| 67 | + | |
| 68 | + /** | |
| 69 | + * @ORM\OneToMany(targetEntity="Candidato", mappedBy="aldea") | |
| 70 | + * @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false) | |
| 71 | + */ | |
| 72 | + protected $candidatos; | |
| 73 | + | |
| 74 | + /** | |
| 75 | + * @ORM\OneToMany(targetEntity="DocenteAldea", mappedBy="aldea") | |
| 76 | + * @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false) | |
| 77 | + */ | |
| 78 | + protected $docenteAldeas; | |
| 79 | + | |
| 80 | + /** | |
| 81 | + * @ORM\OneToMany(targetEntity="UnidadAdministrativa", mappedBy="aldea") | |
| 82 | + * @ORM\JoinColumn(name="id", referencedColumnName="aldea_id", nullable=false) | |
| 83 | + */ | |
| 84 | + protected $unidadAdministrativas; | |
| 85 | + | |
| 86 | + /** | |
| 87 | + * @ORM\ManyToOne(targetEntity="AldeaTipo", inversedBy="aldeas") | |
| 88 | + * @ORM\JoinColumn(name="aldea_tipo_id", referencedColumnName="id", nullable=false) | |
| 89 | + */ | |
| 90 | + protected $aldeaTipo; | |
| 91 | + | |
| 92 | + /** | |
| 93 | + * @ORM\ManyToOne(targetEntity="Ambiente", inversedBy="aldeas") | |
| 94 | + * @ORM\JoinColumn(name="ambiente_id", referencedColumnName="id", nullable=false) | |
| 95 | + */ | |
| 96 | + protected $ambiente; | |
| 97 | + | |
| 98 | + public function __construct() | |
| 99 | + { | |
| 100 | + $this->aldeaMallaCurriculas = new ArrayCollection(); | |
| 101 | + $this->aldeaProgramas = new ArrayCollection(); | |
| 102 | + $this->aldeaTelefonos = new ArrayCollection(); | |
| 103 | + $this->aspirantes = new ArrayCollection(); | |
| 104 | + $this->docenteAldeas = new ArrayCollection(); | |
| 105 | + $this->unidadAdministrativas = new ArrayCollection(); | |
| 106 | + $this->candidatos = new ArrayCollection(); | |
| 107 | + } | |
| 108 | + | |
| 109 | + public function __sleep() | |
| 110 | + { | |
| 111 | + return array('id', 'descripcion', 'codigo_sucre', 'codigo_aldea', 'estatus', 'aldea_tipo_id', 'ambiente_id'); | |
| 112 | + } | |
| 113 | + | |
| 114 | + /** | |
| 115 | + * Get id | |
| 116 | + * | |
| 117 | + * @return integer | |
| 118 | + */ | |
| 119 | + public function getId() | |
| 120 | + { | |
| 121 | + return $this->id; | |
| 122 | + } | |
| 123 | + | |
| 124 | + /** | |
| 125 | + * Set descripcion | |
| 126 | + * | |
| 127 | + * @param string $descripcion | |
| 128 | + * @return Aldea | |
| 129 | + */ | |
| 130 | + public function setDescripcion($descripcion) | |
| 131 | + { | |
| 132 | + $this->descripcion = $descripcion; | |
| 133 | + | |
| 134 | + return $this; | |
| 135 | + } | |
| 136 | + | |
| 137 | + /** | |
| 138 | + * Get descripcion | |
| 139 | + * | |
| 140 | + * @return string | |
| 141 | + */ | |
| 142 | + public function getDescripcion() | |
| 143 | + { | |
| 144 | + return $this->descripcion; | |
| 145 | + } | |
| 146 | + | |
| 147 | + /** | |
| 148 | + * Set codigo_sucre | |
| 149 | + * | |
| 150 | + * @param string $codigoSucre | |
| 151 | + * @return Aldea | |
| 152 | + */ | |
| 153 | + public function setCodigoSucre($codigoSucre) | |
| 154 | + { | |
| 155 | + $this->codigo_sucre = $codigoSucre; | |
| 156 | + | |
| 157 | + return $this; | |
| 158 | + } | |
| 159 | + | |
| 160 | + /** | |
| 161 | + * Get codigo_sucre | |
| 162 | + * | |
| 163 | + * @return string | |
| 164 | + */ | |
| 165 | + public function getCodigoSucre() | |
| 166 | + { | |
| 167 | + return $this->codigo_sucre; | |
| 168 | + } | |
| 169 | + | |
| 170 | + /** | |
| 171 | + * Set codigo_aldea | |
| 172 | + * | |
| 173 | + * @param string $codigoAldea | |
| 174 | + * @return Aldea | |
| 175 | + */ | |
| 176 | + public function setCodigoAldea($codigoAldea) | |
| 177 | + { | |
| 178 | + $this->codigo_aldea = $codigoAldea; | |
| 179 | + | |
| 180 | + return $this; | |
| 181 | + } | |
| 182 | + | |
| 183 | + /** | |
| 184 | + * Get codigo_aldea | |
| 185 | + * | |
| 186 | + * @return string | |
| 187 | + */ | |
| 188 | + public function getCodigoAldea() | |
| 189 | + { | |
| 190 | + return $this->codigo_aldea; | |
| 191 | + } | |
| 192 | + | |
| 193 | + /** | |
| 194 | + * Set estatus | |
| 195 | + * | |
| 196 | + * @param string $estatus | |
| 197 | + * @return Aldea | |
| 198 | + */ | |
| 199 | + public function setEstatus($estatus) | |
| 200 | + { | |
| 201 | + $this->estatus = $estatus; | |
| 202 | + | |
| 203 | + return $this; | |
| 204 | + } | |
| 205 | + | |
| 206 | + /** | |
| 207 | + * Get estatus | |
| 208 | + * | |
| 209 | + * @return string | |
| 210 | + */ | |
| 211 | + public function getEstatus() | |
| 212 | + { | |
| 213 | + return $this->estatus; | |
| 214 | + } | |
| 215 | + | |
| 216 | + /** | |
| 217 | + * Add aldeaMallaCurriculas | |
| 218 | + * | |
| 219 | + * @param \UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas | |
| 220 | + * @return Aldea | |
| 221 | + */ | |
| 222 | + public function addAldeaMallaCurricula(\UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas) | |
| 223 | + { | |
| 224 | + $this->aldeaMallaCurriculas[] = $aldeaMallaCurriculas; | |
| 225 | + | |
| 226 | + return $this; | |
| 227 | + } | |
| 228 | + | |
| 229 | + /** | |
| 230 | + * Remove aldeaMallaCurriculas | |
| 231 | + * | |
| 232 | + * @param \UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas | |
| 233 | + */ | |
| 234 | + public function removeAldeaMallaCurricula(\UBV\SurUbvBundle\Entity\AldeaMallaCurricula $aldeaMallaCurriculas) | |
| 235 | + { | |
| 236 | + $this->aldeaMallaCurriculas->removeElement($aldeaMallaCurriculas); | |
| 237 | + } | |
| 238 | + | |
| 239 | + /** | |
| 240 | + * Get aldeaMallaCurriculas | |
| 241 | + * | |
| 242 | + * @return \Doctrine\Common\Collections\Collection | |
| 243 | + */ | |
| 244 | + public function getAldeaMallaCurriculas() | |
| 245 | + { | |
| 246 | + return $this->aldeaMallaCurriculas; | |
| 247 | + } | |
| 248 | + | |
| 249 | + /** | |
| 250 | + * Add aldeaProgramas | |
| 251 | + * | |
| 252 | + * @param \UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas | |
| 253 | + * @return Aldea | |
| 254 | + */ | |
| 255 | + public function addAldeaPrograma(\UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas) | |
| 256 | + { | |
| 257 | + $this->aldeaProgramas[] = $aldeaProgramas; | |
| 258 | + | |
| 259 | + return $this; | |
| 260 | + } | |
| 261 | + | |
| 262 | + /** | |
| 263 | + * Remove aldeaProgramas | |
| 264 | + * | |
| 265 | + * @param \UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas | |
| 266 | + */ | |
| 267 | + public function removeAldeaPrograma(\UBV\SurUbvBundle\Entity\AldeaPrograma $aldeaProgramas) | |
| 268 | + { | |
| 269 | + $this->aldeaProgramas->removeElement($aldeaProgramas); | |
| 270 | + } | |
| 271 | + | |
| 272 | + /** | |
| 273 | + * Get aldeaProgramas | |
| 274 | + * | |
| 275 | + * @return \Doctrine\Common\Collections\Collection | |
| 276 | + */ | |
| 277 | + public function getAldeaProgramas() | |
| 278 | + { | |
| 279 | + return $this->aldeaProgramas; | |
| 280 | + } | |
| 281 | + | |
| 282 | + /** | |
| 283 | + * Add aldeaTelefonos | |
| 284 | + * | |
| 285 | + * @param \UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos | |
| 286 | + * @return Aldea | |
| 287 | + */ | |
| 288 | + public function addAldeaTelefono(\UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos) | |
| 289 | + { | |
| 290 | + $this->aldeaTelefonos[] = $aldeaTelefonos; | |
| 291 | + | |
| 292 | + return $this; | |
| 293 | + } | |
| 294 | + | |
| 295 | + /** | |
| 296 | + * Remove aldeaTelefonos | |
| 297 | + * | |
| 298 | + * @param \UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos | |
| 299 | + */ | |
| 300 | + public function removeAldeaTelefono(\UBV\SurUbvBundle\Entity\AldeaTelefono $aldeaTelefonos) | |
| 301 | + { | |
| 302 | + $this->aldeaTelefonos->removeElement($aldeaTelefonos); | |
| 303 | + } | |
| 304 | + | |
| 305 | + /** | |
| 306 | + * Get aldeaTelefonos | |
| 307 | + * | |
| 308 | + * @return \Doctrine\Common\Collections\Collection | |
| 309 | + */ | |
| 310 | + public function getAldeaTelefonos() | |
| 311 | + { | |
| 312 | + return $this->aldeaTelefonos; | |
| 313 | + } | |
| 314 | + | |
| 315 | + /** | |
| 316 | + * Add aspirantes | |
| 317 | + * | |
| 318 | + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes | |
| 319 | + * @return Aldea | |
| 320 | + */ | |
| 321 | + public function addAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) | |
| 322 | + { | |
| 323 | + $this->aspirantes[] = $aspirantes; | |
| 324 | + | |
| 325 | + return $this; | |
| 326 | + } | |
| 327 | + | |
| 328 | + /** | |
| 329 | + * Remove aspirantes | |
| 330 | + * | |
| 331 | + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes | |
| 332 | + */ | |
| 333 | + public function removeAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) | |
| 334 | + { | |
| 335 | + $this->aspirantes->removeElement($aspirantes); | |
| 336 | + } | |
| 337 | + | |
| 338 | + /** | |
| 339 | + * Get aspirantes | |
| 340 | + * | |
| 341 | + * @return \Doctrine\Common\Collections\Collection | |
| 342 | + */ | |
| 343 | + public function getAspirantes() | |
| 344 | + { | |
| 345 | + return $this->aspirantes; | |
| 346 | + } | |
| 347 | + | |
| 348 | + /** | |
| 349 | + * Add docenteAldeas | |
| 350 | + * | |
| 351 | + * @param \UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas | |
| 352 | + * @return Aldea | |
| 353 | + */ | |
| 354 | + public function addDocenteAldea(\UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas) | |
| 355 | + { | |
| 356 | + $this->docenteAldeas[] = $docenteAldeas; | |
| 357 | + | |
| 358 | + return $this; | |
| 359 | + } | |
| 360 | + | |
| 361 | + /** | |
| 362 | + * Remove docenteAldeas | |
| 363 | + * | |
| 364 | + * @param \UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas | |
| 365 | + */ | |
| 366 | + public function removeDocenteAldea(\UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas) | |
| 367 | + { | |
| 368 | + $this->docenteAldeas->removeElement($docenteAldeas); | |
| 369 | + } | |
| 370 | + | |
| 371 | + /** | |
| 372 | + * Get docenteAldeas | |
| 373 | + * | |
| 374 | + * @return \Doctrine\Common\Collections\Collection | |
| 375 | + */ | |
| 376 | + public function getDocenteAldeas() | |
| 377 | + { | |
| 378 | + return $this->docenteAldeas; | |
| 379 | + } | |
| 380 | + | |
| 381 | + /** | |
| 382 | + * Add unidadAdministrativas | |
| 383 | + * | |
| 384 | + * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas | |
| 385 | + * @return Aldea | |
| 386 | + */ | |
| 387 | + public function addUnidadAdministrativa(\UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas) | |
| 388 | + { | |
| 389 | + $this->unidadAdministrativas[] = $unidadAdministrativas; | |
| 390 | + | |
| 391 | + return $this; | |
| 392 | + } | |
| 393 | + | |
| 394 | + /** | |
| 395 | + * Remove unidadAdministrativas | |
| 396 | + * | |
| 397 | + * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas | |
| 398 | + */ | |
| 399 | + public function removeUnidadAdministrativa(\UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativas) | |
| 400 | + { | |
| 401 | + $this->unidadAdministrativas->removeElement($unidadAdministrativas); | |
| 402 | + } | |
| 403 | + | |
| 404 | + /** | |
| 405 | + * Get unidadAdministrativas | |
| 406 | + * | |
| 407 | + * @return \Doctrine\Common\Collections\Collection | |
| 408 | + */ | |
| 409 | + public function getUnidadAdministrativas() | |
| 410 | + { | |
| 411 | + return $this->unidadAdministrativas; | |
| 412 | + } | |
| 413 | + | |
| 414 | + /** | |
| 415 | + * Set aldeaTipo | |
| 416 | + * | |
| 417 | + * @param \UBV\SurUbvBundle\Entity\AldeaTipo $aldeaTipo | |
| 418 | + * @return Aldea | |
| 419 | + */ | |
| 420 | + public function setAldeaTipo(\UBV\SurUbvBundle\Entity\AldeaTipo $aldeaTipo) | |
| 421 | + { | |
| 422 | + $this->aldeaTipo = $aldeaTipo; | |
| 423 | + | |
| 424 | + return $this; | |
| 425 | + } | |
| 426 | + | |
| 427 | + /** | |
| 428 | + * Get aldeaTipo | |
| 429 | + * | |
| 430 | + * @return \UBV\SurUbvBundle\Entity\AldeaTipo | |
| 431 | + */ | |
| 432 | + public function getAldeaTipo() | |
| 433 | + { | |
| 434 | + return $this->aldeaTipo; | |
| 435 | + } | |
| 436 | + | |
| 437 | + /** | |
| 438 | + * Set ambiente | |
| 439 | + * | |
| 440 | + * @param \UBV\SurUbvBundle\Entity\Ambiente $ambiente | |
| 441 | + * @return Aldea | |
| 442 | + */ | |
| 443 | + public function setAmbiente(\UBV\SurUbvBundle\Entity\Ambiente $ambiente) | |
| 444 | + { | |
| 445 | + $this->ambiente = $ambiente; | |
| 446 | + | |
| 447 | + return $this; | |
| 448 | + } | |
| 449 | + | |
| 450 | + /** | |
| 451 | + * Get ambiente | |
| 452 | + * | |
| 453 | + * @return \UBV\SurUbvBundle\Entity\Ambiente | |
| 454 | + */ | |
| 455 | + public function getAmbiente() | |
| 456 | + { | |
| 457 | + return $this->ambiente; | |
| 458 | + } | |
| 459 | + | |
| 460 | + public function __toString() | |
| 461 | + { | |
| 462 | + return $this->getDescripcion(); | |
| 463 | + } | |
| 464 | + | |
| 465 | + /** | |
| 466 | + * Add candidatos | |
| 467 | + * | |
| 468 | + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
| 469 | + * @return Aldea | |
| 470 | + */ | |
| 471 | + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
| 472 | + { | |
| 473 | + $this->candidatos[] = $candidatos; | |
| 474 | + | |
| 475 | + return $this; | |
| 476 | + } | |
| 477 | + | |
| 478 | + /** | |
| 479 | + * Remove candidatos | |
| 480 | + * | |
| 481 | + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
| 482 | + */ | |
| 483 | + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
| 484 | + { | |
| 485 | + $this->candidatos->removeElement($candidatos); | |
| 486 | + } | |
| 487 | + | |
| 488 | + /** | |
| 489 | + * Get candidatos | |
| 490 | + * | |
| 491 | + * @return \Doctrine\Common\Collections\Collection | |
| 492 | + */ | |
| 493 | + public function getCandidatos() | |
| 494 | + { | |
| 495 | + return $this->candidatos; | |
| 496 | + } | |
| 497 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AldeaMallaCurricula.php
| ... | ... | @@ -0,0 +1,237 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\AldeaMallaCurricula | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AldeaMallaCurriculaRepository") | |
| 12 | + * @ORM\Table(name="aldea_malla_curricula", indexes={@ORM\Index(name="fk_aldea_malla_curricula_aldea1_idx", columns={"aldea_id"}), @ORM\Index(name="fk_aldea_malla_curricula_malla_curricular1_idx", columns={"malla_curricular_id"}), @ORM\Index(name="fk_aldea_malla_curricula_turno1_idx", columns={"turno_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_aldea_malla_curricular_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class AldeaMallaCurricula | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="aldea_malla_curricula_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="string", length=2, nullable=true) | |
| 26 | + */ | |
| 27 | + protected $estatus; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\OneToMany(targetEntity="EstudianteDetalle", mappedBy="aldeaMallaCurricula") | |
| 31 | + * @ORM\JoinColumn(name="id", referencedColumnName="aldea_malla_curricula_id", nullable=false) | |
| 32 | + */ | |
| 33 | + protected $estudianteDetalles; | |
| 34 | + | |
| 35 | + /** | |
| 36 | + * @ORM\OneToMany(targetEntity="OfertaAcademica", mappedBy="aldeaMallaCurricula") | |
| 37 | + * @ORM\JoinColumn(name="id", referencedColumnName="aldea_malla_curricula_id", nullable=false) | |
| 38 | + */ | |
| 39 | + protected $ofertaAcademicas; | |
| 40 | + | |
| 41 | + /** | |
| 42 | + * @ORM\ManyToOne(targetEntity="Aldea", inversedBy="aldeaMallaCurriculas") | |
| 43 | + * @ORM\JoinColumn(name="aldea_id", referencedColumnName="id", nullable=false) | |
| 44 | + */ | |
| 45 | + protected $aldea; | |
| 46 | + | |
| 47 | + /** | |
| 48 | + * @ORM\ManyToOne(targetEntity="MallaCurricular", inversedBy="aldeaMallaCurriculas") | |
| 49 | + * @ORM\JoinColumn(name="malla_curricular_id", referencedColumnName="id", nullable=false) | |
| 50 | + */ | |
| 51 | + protected $mallaCurricular; | |
| 52 | + | |
| 53 | + /** | |
| 54 | + * @ORM\ManyToOne(targetEntity="Turno", inversedBy="aldeaMallaCurriculas") | |
| 55 | + * @ORM\JoinColumn(name="turno_id", referencedColumnName="id", nullable=false) | |
| 56 | + */ | |
| 57 | + protected $turno; | |
| 58 | + | |
| 59 | + public function __construct() | |
| 60 | + { | |
| 61 | + $this->estudianteDetalles = new ArrayCollection(); | |
| 62 | + $this->ofertaAcademicas = new ArrayCollection(); | |
| 63 | + } | |
| 64 | + | |
| 65 | + public function __sleep() | |
| 66 | + { | |
| 67 | + return array('id', 'estatus', 'aldea_id', 'malla_curricular_id', 'turno_id'); | |
| 68 | + } | |
| 69 | + | |
| 70 | + /** | |
| 71 | + * Get id | |
| 72 | + * | |
| 73 | + * @return integer | |
| 74 | + */ | |
| 75 | + public function getId() | |
| 76 | + { | |
| 77 | + return $this->id; | |
| 78 | + } | |
| 79 | + | |
| 80 | + /** | |
| 81 | + * Set estatus | |
| 82 | + * | |
| 83 | + * @param string $estatus | |
| 84 | + * @return AldeaMallaCurricula | |
| 85 | + */ | |
| 86 | + public function setEstatus($estatus) | |
| 87 | + { | |
| 88 | + $this->estatus = $estatus; | |
| 89 | + | |
| 90 | + return $this; | |
| 91 | + } | |
| 92 | + | |
| 93 | + /** | |
| 94 | + * Get estatus | |
| 95 | + * | |
| 96 | + * @return string | |
| 97 | + */ | |
| 98 | + public function getEstatus() | |
| 99 | + { | |
| 100 | + return $this->estatus; | |
| 101 | + } | |
| 102 | + | |
| 103 | + /** | |
| 104 | + * Add estudianteDetalles | |
| 105 | + * | |
| 106 | + * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles | |
| 107 | + * @return AldeaMallaCurricula | |
| 108 | + */ | |
| 109 | + public function addEstudianteDetalle(\UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles) | |
| 110 | + { | |
| 111 | + $this->estudianteDetalles[] = $estudianteDetalles; | |
| 112 | + | |
| 113 | + return $this; | |
| 114 | + } | |
| 115 | + | |
| 116 | + /** | |
| 117 | + * Remove estudianteDetalles | |
| 118 | + * | |
| 119 | + * @param \UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles | |
| 120 | + */ | |
| 121 | + public function removeEstudianteDetalle(\UBV\SurUbvBundle\Entity\EstudianteDetalle $estudianteDetalles) | |
| 122 | + { | |
| 123 | + $this->estudianteDetalles->removeElement($estudianteDetalles); | |
| 124 | + } | |
| 125 | + | |
| 126 | + /** | |
| 127 | + * Get estudianteDetalles | |
| 128 | + * | |
| 129 | + * @return \Doctrine\Common\Collections\Collection | |
| 130 | + */ | |
| 131 | + public function getEstudianteDetalles() | |
| 132 | + { | |
| 133 | + return $this->estudianteDetalles; | |
| 134 | + } | |
| 135 | + | |
| 136 | + /** | |
| 137 | + * Add ofertaAcademicas | |
| 138 | + * | |
| 139 | + * @param \UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademicas | |
| 140 | + * @return AldeaMallaCurricula | |
| 141 | + */ | |
| 142 | + public function addOfertaAcademica(\UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademicas) | |
| 143 | + { | |
| 144 | + $this->ofertaAcademicas[] = $ofertaAcademicas; | |
| 145 | + | |
| 146 | + return $this; | |
| 147 | + } | |
| 148 | + | |
| 149 | + /** | |
| 150 | + * Remove ofertaAcademicas | |
| 151 | + * | |
| 152 | + * @param \UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademicas | |
| 153 | + */ | |
| 154 | + public function removeOfertaAcademica(\UBV\SurUbvBundle\Entity\OfertaAcademica $ofertaAcademicas) | |
| 155 | + { | |
| 156 | + $this->ofertaAcademicas->removeElement($ofertaAcademicas); | |
| 157 | + } | |
| 158 | + | |
| 159 | + /** | |
| 160 | + * Get ofertaAcademicas | |
| 161 | + * | |
| 162 | + * @return \Doctrine\Common\Collections\Collection | |
| 163 | + */ | |
| 164 | + public function getOfertaAcademicas() | |
| 165 | + { | |
| 166 | + return $this->ofertaAcademicas; | |
| 167 | + } | |
| 168 | + | |
| 169 | + /** | |
| 170 | + * Set aldea | |
| 171 | + * | |
| 172 | + * @param \UBV\SurUbvBundle\Entity\Aldea $aldea | |
| 173 | + * @return AldeaMallaCurricula | |
| 174 | + */ | |
| 175 | + public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) | |
| 176 | + { | |
| 177 | + $this->aldea = $aldea; | |
| 178 | + | |
| 179 | + return $this; | |
| 180 | + } | |
| 181 | + | |
| 182 | + /** | |
| 183 | + * Get aldea | |
| 184 | + * | |
| 185 | + * @return \UBV\SurUbvBundle\Entity\Aldea | |
| 186 | + */ | |
| 187 | + public function getAldea() | |
| 188 | + { | |
| 189 | + return $this->aldea; | |
| 190 | + } | |
| 191 | + | |
| 192 | + /** | |
| 193 | + * Set mallaCurricular | |
| 194 | + * | |
| 195 | + * @param \UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurricular | |
| 196 | + * @return AldeaMallaCurricula | |
| 197 | + */ | |
| 198 | + public function setMallaCurricular(\UBV\SurUbvBundle\Entity\MallaCurricular $mallaCurricular) | |
| 199 | + { | |
| 200 | + $this->mallaCurricular = $mallaCurricular; | |
| 201 | + | |
| 202 | + return $this; | |
| 203 | + } | |
| 204 | + | |
| 205 | + /** | |
| 206 | + * Get mallaCurricular | |
| 207 | + * | |
| 208 | + * @return \UBV\SurUbvBundle\Entity\MallaCurricular | |
| 209 | + */ | |
| 210 | + public function getMallaCurricular() | |
| 211 | + { | |
| 212 | + return $this->mallaCurricular; | |
| 213 | + } | |
| 214 | + | |
| 215 | + /** | |
| 216 | + * Set turno | |
| 217 | + * | |
| 218 | + * @param \UBV\SurUbvBundle\Entity\Turno $turno | |
| 219 | + * @return AldeaMallaCurricula | |
| 220 | + */ | |
| 221 | + public function setTurno(\UBV\SurUbvBundle\Entity\Turno $turno) | |
| 222 | + { | |
| 223 | + $this->turno = $turno; | |
| 224 | + | |
| 225 | + return $this; | |
| 226 | + } | |
| 227 | + | |
| 228 | + /** | |
| 229 | + * Get turno | |
| 230 | + * | |
| 231 | + * @return \UBV\SurUbvBundle\Entity\Turno | |
| 232 | + */ | |
| 233 | + public function getTurno() | |
| 234 | + { | |
| 235 | + return $this->turno; | |
| 236 | + } | |
| 237 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AldeaMallaCurriculaRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * AldeaMallaCurriculaRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class AldeaMallaCurriculaRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AldeaPrograma.php
| ... | ... | @@ -0,0 +1,128 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | + | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\AldeaPrograma | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AldeaProgramaRepository") | |
| 12 | + * @ORM\Table(name="aldea_programa", indexes={@ORM\Index(name="fk_aldea_programa_aldea1_idx", columns={"aldea_id"}), @ORM\Index(name="fk_aldea_programa_programa1_idx", columns={"programa_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="codigo_opsu_UNIQUE", columns={"codigo_opsu"}), @ORM\UniqueConstraint(name="id_aldea_programa_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class AldeaPrograma | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="aldea_programa_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="integer", nullable=true) | |
| 26 | + */ | |
| 27 | + protected $codigo_opsu; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\ManyToOne(targetEntity="Aldea", inversedBy="aldeaProgramas") | |
| 31 | + * @ORM\JoinColumn(name="aldea_id", referencedColumnName="id", nullable=false) | |
| 32 | + */ | |
| 33 | + protected $aldea; | |
| 34 | + | |
| 35 | + /** | |
| 36 | + * @ORM\ManyToOne(targetEntity="Programa", inversedBy="aldeaProgramas") | |
| 37 | + * @ORM\JoinColumn(name="programa_id", referencedColumnName="id", nullable=false) | |
| 38 | + */ | |
| 39 | + protected $programa; | |
| 40 | + | |
| 41 | + public function __construct() | |
| 42 | + { | |
| 43 | + } | |
| 44 | + | |
| 45 | + public function __sleep() | |
| 46 | + { | |
| 47 | + return array('id', 'codigo_opsu', 'aldea_id', 'programa_id'); | |
| 48 | + } | |
| 49 | + | |
| 50 | + /** | |
| 51 | + * Get id | |
| 52 | + * | |
| 53 | + * @return integer | |
| 54 | + */ | |
| 55 | + public function getId() | |
| 56 | + { | |
| 57 | + return $this->id; | |
| 58 | + } | |
| 59 | + | |
| 60 | + /** | |
| 61 | + * Set codigo_opsu | |
| 62 | + * | |
| 63 | + * @param integer $codigoOpsu | |
| 64 | + * @return AldeaPrograma | |
| 65 | + */ | |
| 66 | + public function setCodigoOpsu($codigoOpsu) | |
| 67 | + { | |
| 68 | + $this->codigo_opsu = $codigoOpsu; | |
| 69 | + | |
| 70 | + return $this; | |
| 71 | + } | |
| 72 | + | |
| 73 | + /** | |
| 74 | + * Get codigo_opsu | |
| 75 | + * | |
| 76 | + * @return integer | |
| 77 | + */ | |
| 78 | + public function getCodigoOpsu() | |
| 79 | + { | |
| 80 | + return $this->codigo_opsu; | |
| 81 | + } | |
| 82 | + | |
| 83 | + /** | |
| 84 | + * Set aldea | |
| 85 | + * | |
| 86 | + * @param \UBV\SurUbvBundle\Entity\Aldea $aldea | |
| 87 | + * @return AldeaPrograma | |
| 88 | + */ | |
| 89 | + public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) | |
| 90 | + { | |
| 91 | + $this->aldea = $aldea; | |
| 92 | + | |
| 93 | + return $this; | |
| 94 | + } | |
| 95 | + | |
| 96 | + /** | |
| 97 | + * Get aldea | |
| 98 | + * | |
| 99 | + * @return \UBV\SurUbvBundle\Entity\Aldea | |
| 100 | + */ | |
| 101 | + public function getAldea() | |
| 102 | + { | |
| 103 | + return $this->aldea; | |
| 104 | + } | |
| 105 | + | |
| 106 | + /** | |
| 107 | + * Set programa | |
| 108 | + * | |
| 109 | + * @param \UBV\SurUbvBundle\Entity\Programa $programa | |
| 110 | + * @return AldeaPrograma | |
| 111 | + */ | |
| 112 | + public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) | |
| 113 | + { | |
| 114 | + $this->programa = $programa; | |
| 115 | + | |
| 116 | + return $this; | |
| 117 | + } | |
| 118 | + | |
| 119 | + /** | |
| 120 | + * Get programa | |
| 121 | + * | |
| 122 | + * @return \UBV\SurUbvBundle\Entity\Programa | |
| 123 | + */ | |
| 124 | + public function getPrograma() | |
| 125 | + { | |
| 126 | + return $this->programa; | |
| 127 | + } | |
| 128 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AldeaProgramaRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * AldeaProgramaRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class AldeaProgramaRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AldeaRepository.php
| ... | ... | @@ -0,0 +1,35 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Query\Expr\Join; | |
| 6 | +use Doctrine\ORM\EntityRepository; | |
| 7 | + | |
| 8 | +use Doctrine\ORM\Query; | |
| 9 | + | |
| 10 | +/** | |
| 11 | + * AldeaRepository | |
| 12 | + * | |
| 13 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 14 | + * repository methods below. | |
| 15 | + */ | |
| 16 | +class AldeaRepository extends EntityRepository | |
| 17 | +{ | |
| 18 | + public function findAldeaByParroquiaId($parroquia_id) | |
| 19 | + { | |
| 20 | + $em = $this->getEntityManager(); | |
| 21 | + | |
| 22 | + //die(dump($pais_id)); | |
| 23 | + $result = $em->createQueryBuilder(); | |
| 24 | + | |
| 25 | + $dql = $result -> select ('aldea') | |
| 26 | + ->from('UBVSurUbvBundle:Aldea', 'aldea') | |
| 27 | + ->Join('aldea.ambiente', 'ambiente', 'ambiente.id = aldea.ambiente_id') | |
| 28 | + ->Join('ambiente.parroquia', 'parroquia', 'parroquia.id = ambiente.parroquia_id') | |
| 29 | + ->where('parroquia.id = :parroquia_id') | |
| 30 | + ->setParameter('parroquia_id',$parroquia_id) | |
| 31 | + ->getQuery() | |
| 32 | + ->getResult(Query::HYDRATE_ARRAY); | |
| 33 | + return $dql; | |
| 34 | + } | |
| 35 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AldeaTelefono.php
| ... | ... | @@ -0,0 +1,127 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * UBV\SurUbvBundle\Entity\AldeaTelefono | |
| 9 | + * | |
| 10 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AldeaTelefonoRepository") | |
| 11 | + * @ORM\Table(name="aldea_telefono", indexes={@ORM\Index(name="fk_aldea_telefono_telefono_codigo_area1_idx", columns={"telefono_codigo_area_id"}), @ORM\Index(name="fk_aldea_telefono_aldea1_idx", columns={"aldea_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_aldea_telefono_UNIQUE", columns={"id"})}) | |
| 12 | + */ | |
| 13 | +class AldeaTelefono | |
| 14 | +{ | |
| 15 | + /** | |
| 16 | + * @ORM\Id | |
| 17 | + * @ORM\Column(type="integer") | |
| 18 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 19 | + * @ORM\SequenceGenerator(sequenceName="aldea_telefono_id_seq", allocationSize=1, initialValue=1) | |
| 20 | + */ | |
| 21 | + protected $id; | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * @ORM\Column(type="integer") | |
| 25 | + */ | |
| 26 | + protected $descripcion; | |
| 27 | + | |
| 28 | + /** | |
| 29 | + * @ORM\ManyToOne(targetEntity="TelefonoCodigoArea", inversedBy="aldeaTelefonos") | |
| 30 | + * @ORM\JoinColumn(name="telefono_codigo_area_id", referencedColumnName="id", nullable=false) | |
| 31 | + */ | |
| 32 | + protected $telefonoCodigoArea; | |
| 33 | + | |
| 34 | + /** | |
| 35 | + * @ORM\ManyToOne(targetEntity="Aldea", inversedBy="aldeaTelefonos") | |
| 36 | + * @ORM\JoinColumn(name="aldea_id", referencedColumnName="id", nullable=false) | |
| 37 | + */ | |
| 38 | + protected $aldea; | |
| 39 | + | |
| 40 | + public function __construct() | |
| 41 | + { | |
| 42 | + } | |
| 43 | + | |
| 44 | + public function __sleep() | |
| 45 | + { | |
| 46 | + return array('id', 'descripcion', 'telefono_codigo_area_id', 'aldea_id'); | |
| 47 | + } | |
| 48 | + | |
| 49 | + /** | |
| 50 | + * Get id | |
| 51 | + * | |
| 52 | + * @return integer | |
| 53 | + */ | |
| 54 | + public function getId() | |
| 55 | + { | |
| 56 | + return $this->id; | |
| 57 | + } | |
| 58 | + | |
| 59 | + /** | |
| 60 | + * Set descripcion | |
| 61 | + * | |
| 62 | + * @param integer $descripcion | |
| 63 | + * @return AldeaTelefono | |
| 64 | + */ | |
| 65 | + public function setDescripcion($descripcion) | |
| 66 | + { | |
| 67 | + $this->descripcion = $descripcion; | |
| 68 | + | |
| 69 | + return $this; | |
| 70 | + } | |
| 71 | + | |
| 72 | + /** | |
| 73 | + * Get descripcion | |
| 74 | + * | |
| 75 | + * @return integer | |
| 76 | + */ | |
| 77 | + public function getDescripcion() | |
| 78 | + { | |
| 79 | + return $this->descripcion; | |
| 80 | + } | |
| 81 | + | |
| 82 | + /** | |
| 83 | + * Set telefonoCodigoArea | |
| 84 | + * | |
| 85 | + * @param \UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea | |
| 86 | + * @return AldeaTelefono | |
| 87 | + */ | |
| 88 | + public function setTelefonoCodigoArea(\UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea) | |
| 89 | + { | |
| 90 | + $this->telefonoCodigoArea = $telefonoCodigoArea; | |
| 91 | + | |
| 92 | + return $this; | |
| 93 | + } | |
| 94 | + | |
| 95 | + /** | |
| 96 | + * Get telefonoCodigoArea | |
| 97 | + * | |
| 98 | + * @return \UBV\SurUbvBundle\Entity\TelefonoCodigoArea | |
| 99 | + */ | |
| 100 | + public function getTelefonoCodigoArea() | |
| 101 | + { | |
| 102 | + return $this->telefonoCodigoArea; | |
| 103 | + } | |
| 104 | + | |
| 105 | + /** | |
| 106 | + * Set aldea | |
| 107 | + * | |
| 108 | + * @param \UBV\SurUbvBundle\Entity\Aldea $aldea | |
| 109 | + * @return AldeaTelefono | |
| 110 | + */ | |
| 111 | + public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) | |
| 112 | + { | |
| 113 | + $this->aldea = $aldea; | |
| 114 | + | |
| 115 | + return $this; | |
| 116 | + } | |
| 117 | + | |
| 118 | + /** | |
| 119 | + * Get aldea | |
| 120 | + * | |
| 121 | + * @return \UBV\SurUbvBundle\Entity\Aldea | |
| 122 | + */ | |
| 123 | + public function getAldea() | |
| 124 | + { | |
| 125 | + return $this->aldea; | |
| 126 | + } | |
| 127 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AldeaTelefonoRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * AldeaTelefonoRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class AldeaTelefonoRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AldeaTipo.php
| ... | ... | @@ -0,0 +1,121 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | +use Symfony\Component\Validator\Constraints as Assert; | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\AldeaTipo | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AldeaTipoRepository") | |
| 12 | + * @ORM\Table(name="aldea_tipo", uniqueConstraints={@ORM\UniqueConstraint(name="id_aldea_tipo_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class AldeaTipo | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="aldea_tipo_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="string", length=70) | |
| 26 | + * @Assert\NotBlank( message= "Por favor introduzca la Descripciรณn de la Aldea") | |
| 27 | + *@Assert\Length( | |
| 28 | + * min = 4, | |
| 29 | + * max = 70, | |
| 30 | + * minMessage = "Por favor introduzca un Tipo de Aldea mรกs especรญfico. Mรญnimo {{ limit }} caracteres", | |
| 31 | + * maxMessage = "Por favor introduzca un Tipo de Aldea mรกs breve. Mรกximo {{ limit }} caracteres", | |
| 32 | + *) | |
| 33 | + */ | |
| 34 | + protected $descripcion; | |
| 35 | + | |
| 36 | + /** | |
| 37 | + * @ORM\OneToMany(targetEntity="Aldea", mappedBy="aldeaTipo") | |
| 38 | + * @ORM\JoinColumn(name="id", referencedColumnName="aldea_tipo_id", nullable=false) | |
| 39 | + */ | |
| 40 | + protected $aldeas; | |
| 41 | + | |
| 42 | + public function __construct() | |
| 43 | + { | |
| 44 | + $this->aldeas = new ArrayCollection(); | |
| 45 | + } | |
| 46 | + | |
| 47 | + public function __sleep() | |
| 48 | + { | |
| 49 | + return array('id', 'descripcion'); | |
| 50 | + } | |
| 51 | + | |
| 52 | + /** | |
| 53 | + * Get id | |
| 54 | + * | |
| 55 | + * @return integer | |
| 56 | + */ | |
| 57 | + public function getId() | |
| 58 | + { | |
| 59 | + return $this->id; | |
| 60 | + } | |
| 61 | + | |
| 62 | + /** | |
| 63 | + * Set descripcion | |
| 64 | + * | |
| 65 | + * @param string $descripcion | |
| 66 | + * @return AldeaTipo | |
| 67 | + */ | |
| 68 | + public function setDescripcion($descripcion) | |
| 69 | + { | |
| 70 | + $this->descripcion = $descripcion; | |
| 71 | + | |
| 72 | + return $this; | |
| 73 | + } | |
| 74 | + | |
| 75 | + /** | |
| 76 | + * Get descripcion | |
| 77 | + * | |
| 78 | + * @return string | |
| 79 | + */ | |
| 80 | + public function getDescripcion() | |
| 81 | + { | |
| 82 | + return $this->descripcion; | |
| 83 | + } | |
| 84 | + | |
| 85 | + /** | |
| 86 | + * Add aldeas | |
| 87 | + * | |
| 88 | + * @param \UBV\SurUbvBundle\Entity\Aldea $aldeas | |
| 89 | + * @return AldeaTipo | |
| 90 | + */ | |
| 91 | + public function addAldea(\UBV\SurUbvBundle\Entity\Aldea $aldeas) | |
| 92 | + { | |
| 93 | + $this->aldeas[] = $aldeas; | |
| 94 | + | |
| 95 | + return $this; | |
| 96 | + } | |
| 97 | + | |
| 98 | + /** | |
| 99 | + * Remove aldeas | |
| 100 | + * | |
| 101 | + * @param \UBV\SurUbvBundle\Entity\Aldea $aldeas | |
| 102 | + */ | |
| 103 | + public function removeAldea(\UBV\SurUbvBundle\Entity\Aldea $aldeas) | |
| 104 | + { | |
| 105 | + $this->aldeas->removeElement($aldeas); | |
| 106 | + } | |
| 107 | + | |
| 108 | + /** | |
| 109 | + * Get aldeas | |
| 110 | + * | |
| 111 | + * @return \Doctrine\Common\Collections\Collection | |
| 112 | + */ | |
| 113 | + public function getAldeas() | |
| 114 | + { | |
| 115 | + return $this->aldeas; | |
| 116 | + } | |
| 117 | + | |
| 118 | + public function __toString() { | |
| 119 | + return $this->getDescripcion(); | |
| 120 | + } | |
| 121 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AldeaTipoRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * AldeaTipoRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class AldeaTipoRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/Ambiente.php
| ... | ... | @@ -0,0 +1,325 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +use Symfony\Component\Validator\Constraints as Assert; | |
| 9 | + | |
| 10 | +/** | |
| 11 | + * UBV\SurUbvBundle\Entity\Ambiente | |
| 12 | + * | |
| 13 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AmbienteRepository") | |
| 14 | + * @ORM\Table(name="ambiente", indexes={@ORM\Index(name="fk_ambiente_parroquia1_idx", columns={"parroquia_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_ambiente_UNIQUE", columns={"id"})}) | |
| 15 | + */ | |
| 16 | +class Ambiente | |
| 17 | +{ | |
| 18 | + /** | |
| 19 | + * @ORM\Id | |
| 20 | + * @ORM\Column(type="integer") | |
| 21 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 22 | + * @ORM\SequenceGenerator(sequenceName="ambiente_id_seq", allocationSize=1, initialValue=1) | |
| 23 | + */ | |
| 24 | + protected $id; | |
| 25 | + | |
| 26 | + /** | |
| 27 | + * @ORM\Column(type="string", length=70, nullable=false) | |
| 28 | + * @Assert\NotBlank( message= "Por favor introduzca una Descripciรณn del Nombre del Ambiente") | |
| 29 | + * @Assert\Length( | |
| 30 | + * min = 10, | |
| 31 | + * max = 70, | |
| 32 | + * minMessage = "Por favor introduzca un Nombre del Ambiente mรกs especรญfico. Mรญnimo {{ limit }} caracteres", | |
| 33 | + * maxMessage = "Por favor introduzca un Nombre del Ambiente mรกs breve. Mรกximo {{ limit }} caracteres", | |
| 34 | + * | |
| 35 | + * ) | |
| 36 | + * @Assert\NotNull(message="Este Campo no puede Ser Nulo") | |
| 37 | + */ | |
| 38 | + protected $descripcion; | |
| 39 | + | |
| 40 | + /** | |
| 41 | + * @ORM\Column(type="string", length=6, nullable=false) | |
| 42 | + * @Assert\NotBlank( message= "Por favor introduzca el Cรณdigo del Ambiente") | |
| 43 | + * @Assert\Length( | |
| 44 | + * min = 6, | |
| 45 | + * max = 6, | |
| 46 | + * exactMessage = "Por favor introduzca un codigo Vรกlido. debe tener {{ limit }} caracteres", | |
| 47 | + * minMessage = "Por favor introduzca un codigo Vรกlido. Mรญnimo {{ limit }} caracteres", | |
| 48 | + * maxMessage = "Por favor introduzca un codigo Vรกlido. Mรกximo {{ limit }} caracteres", | |
| 49 | + * | |
| 50 | + * ) | |
| 51 | + * @Assert\NotNull(message="Este Campo no puede Ser Nulo") | |
| 52 | + */ | |
| 53 | + protected $codigo; | |
| 54 | + | |
| 55 | + /** | |
| 56 | + * @ORM\Column(type="text", nullable=false) | |
| 57 | + * @Assert\NotBlank( message= "Por favor introduzca una direcciรณn valida") | |
| 58 | + * @Assert\Length( | |
| 59 | + * min = 20, | |
| 60 | + * max = 200, | |
| 61 | + * minMessage = "Por favor introduzca una direcciรณn mรกs especรญfica. Mรญnimo {{ limit }} caracteres", | |
| 62 | + * maxMessage = "Por favor introduzca una direcciรณn mรกs breve. Mรกximo {{ limit }} caracteres", | |
| 63 | + * | |
| 64 | + * ) | |
| 65 | + * @Assert\NotNull(message="Este Campo no puede Ser Nulo") | |
| 66 | + */ | |
| 67 | + protected $direccion; | |
| 68 | + | |
| 69 | + /** | |
| 70 | + * @ORM\Column(type="text", nullable=true) | |
| 71 | + */ | |
| 72 | + protected $coordenadas_utm_norte; | |
| 73 | + | |
| 74 | + /** | |
| 75 | + * @ORM\Column(type="text", nullable=true) | |
| 76 | + */ | |
| 77 | + protected $coordenadas_utm_oeste; | |
| 78 | + | |
| 79 | + /** | |
| 80 | + * @ORM\OneToMany(targetEntity="Aldea", mappedBy="ambiente") | |
| 81 | + * @ORM\JoinColumn(name="id", referencedColumnName="ambiente_id", nullable=false) | |
| 82 | + */ | |
| 83 | + protected $aldeas; | |
| 84 | + | |
| 85 | + /** | |
| 86 | + * @ORM\OneToMany(targetEntity="AmbienteDetalle", mappedBy="ambiente") | |
| 87 | + * @ORM\JoinColumn(name="id", referencedColumnName="ambiente_id", nullable=false) | |
| 88 | + */ | |
| 89 | + protected $ambienteDetalles; | |
| 90 | + | |
| 91 | + /** | |
| 92 | + * @ORM\ManyToOne(targetEntity="Parroquia", inversedBy="ambientes", cascade={"persist", "remove"}) | |
| 93 | + * @ORM\JoinColumn(name="parroquia_id", referencedColumnName="id", nullable=false) | |
| 94 | + */ | |
| 95 | + protected $parroquia; | |
| 96 | + | |
| 97 | + public function __construct() | |
| 98 | + { | |
| 99 | + $this->aldeas = new ArrayCollection(); | |
| 100 | + $this->ambienteDetalles = new ArrayCollection(); | |
| 101 | + } | |
| 102 | + | |
| 103 | + public function __sleep() | |
| 104 | + { | |
| 105 | + return array('id', 'descripcion', 'codigo', 'direccion', 'coordenadas_utm_norte', 'coordenadas_utm_oeste', 'parroquia_id'); | |
| 106 | + } | |
| 107 | + | |
| 108 | + /** | |
| 109 | + * Get id | |
| 110 | + * | |
| 111 | + * @return integer | |
| 112 | + */ | |
| 113 | + public function getId() | |
| 114 | + { | |
| 115 | + return $this->id; | |
| 116 | + } | |
| 117 | + | |
| 118 | + /** | |
| 119 | + * Set descripcion | |
| 120 | + * | |
| 121 | + * @param string $descripcion | |
| 122 | + * @return Ambiente | |
| 123 | + */ | |
| 124 | + public function setDescripcion($descripcion) | |
| 125 | + { | |
| 126 | + $this->descripcion = $descripcion; | |
| 127 | + | |
| 128 | + return $this; | |
| 129 | + } | |
| 130 | + | |
| 131 | + /** | |
| 132 | + * Get descripcion | |
| 133 | + * | |
| 134 | + * @return string | |
| 135 | + */ | |
| 136 | + public function getDescripcion() | |
| 137 | + { | |
| 138 | + return $this->descripcion; | |
| 139 | + } | |
| 140 | + | |
| 141 | + /** | |
| 142 | + * Set codigo | |
| 143 | + * | |
| 144 | + * @param string $codigo | |
| 145 | + * @return Ambiente | |
| 146 | + */ | |
| 147 | + public function setCodigo($codigo) | |
| 148 | + { | |
| 149 | + $this->codigo = $codigo; | |
| 150 | + | |
| 151 | + return $this; | |
| 152 | + } | |
| 153 | + | |
| 154 | + /** | |
| 155 | + * Get codigo | |
| 156 | + * | |
| 157 | + * @return string | |
| 158 | + */ | |
| 159 | + public function getCodigo() | |
| 160 | + { | |
| 161 | + return $this->codigo; | |
| 162 | + } | |
| 163 | + | |
| 164 | + /** | |
| 165 | + * Set direccion | |
| 166 | + * | |
| 167 | + * @param string $direccion | |
| 168 | + * @return Ambiente | |
| 169 | + */ | |
| 170 | + public function setDireccion($direccion) | |
| 171 | + { | |
| 172 | + $this->direccion = $direccion; | |
| 173 | + | |
| 174 | + return $this; | |
| 175 | + } | |
| 176 | + | |
| 177 | + /** | |
| 178 | + * Get direccion | |
| 179 | + * | |
| 180 | + * @return string | |
| 181 | + */ | |
| 182 | + public function getDireccion() | |
| 183 | + { | |
| 184 | + return $this->direccion; | |
| 185 | + } | |
| 186 | + | |
| 187 | + /** | |
| 188 | + * Set coordenadas_utm_norte | |
| 189 | + * | |
| 190 | + * @param string $coordenadasUtmNorte | |
| 191 | + * @return Ambiente | |
| 192 | + */ | |
| 193 | + public function setCoordenadasUtmNorte($coordenadasUtmNorte) | |
| 194 | + { | |
| 195 | + $this->coordenadas_utm_norte = $coordenadasUtmNorte; | |
| 196 | + | |
| 197 | + return $this; | |
| 198 | + } | |
| 199 | + | |
| 200 | + /** | |
| 201 | + * Get coordenadas_utm_norte | |
| 202 | + * | |
| 203 | + * @return string | |
| 204 | + */ | |
| 205 | + public function getCoordenadasUtmNorte() | |
| 206 | + { | |
| 207 | + return $this->coordenadas_utm_norte; | |
| 208 | + } | |
| 209 | + | |
| 210 | + /** | |
| 211 | + * Set coordenadas_utm_oeste | |
| 212 | + * | |
| 213 | + * @param string $coordenadasUtmOeste | |
| 214 | + * @return Ambiente | |
| 215 | + */ | |
| 216 | + public function setCoordenadasUtmOeste($coordenadasUtmOeste) | |
| 217 | + { | |
| 218 | + $this->coordenadas_utm_oeste = $coordenadasUtmOeste; | |
| 219 | + | |
| 220 | + return $this; | |
| 221 | + } | |
| 222 | + | |
| 223 | + /** | |
| 224 | + * Get coordenadas_utm_oeste | |
| 225 | + * | |
| 226 | + * @return string | |
| 227 | + */ | |
| 228 | + public function getCoordenadasUtmOeste() | |
| 229 | + { | |
| 230 | + return $this->coordenadas_utm_oeste; | |
| 231 | + } | |
| 232 | + | |
| 233 | + /** | |
| 234 | + * Add aldeas | |
| 235 | + * | |
| 236 | + * @param \UBV\SurUbvBundle\Entity\Aldea $aldeas | |
| 237 | + * @return Ambiente | |
| 238 | + */ | |
| 239 | + public function addAldea(\UBV\SurUbvBundle\Entity\Aldea $aldeas) | |
| 240 | + { | |
| 241 | + $this->aldeas[] = $aldeas; | |
| 242 | + | |
| 243 | + return $this; | |
| 244 | + } | |
| 245 | + | |
| 246 | + /** | |
| 247 | + * Remove aldeas | |
| 248 | + * | |
| 249 | + * @param \UBV\SurUbvBundle\Entity\Aldea $aldeas | |
| 250 | + */ | |
| 251 | + public function removeAldea(\UBV\SurUbvBundle\Entity\Aldea $aldeas) | |
| 252 | + { | |
| 253 | + $this->aldeas->removeElement($aldeas); | |
| 254 | + } | |
| 255 | + | |
| 256 | + /** | |
| 257 | + * Get aldeas | |
| 258 | + * | |
| 259 | + * @return \Doctrine\Common\Collections\Collection | |
| 260 | + */ | |
| 261 | + public function getAldeas() | |
| 262 | + { | |
| 263 | + return $this->aldeas; | |
| 264 | + } | |
| 265 | + | |
| 266 | + /** | |
| 267 | + * Add ambienteDetalles | |
| 268 | + * | |
| 269 | + * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles | |
| 270 | + * @return Ambiente | |
| 271 | + */ | |
| 272 | + public function addAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles) | |
| 273 | + { | |
| 274 | + $this->ambienteDetalles[] = $ambienteDetalles; | |
| 275 | + | |
| 276 | + return $this; | |
| 277 | + } | |
| 278 | + | |
| 279 | + /** | |
| 280 | + * Remove ambienteDetalles | |
| 281 | + * | |
| 282 | + * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles | |
| 283 | + */ | |
| 284 | + public function removeAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles) | |
| 285 | + { | |
| 286 | + $this->ambienteDetalles->removeElement($ambienteDetalles); | |
| 287 | + } | |
| 288 | + | |
| 289 | + /** | |
| 290 | + * Get ambienteDetalles | |
| 291 | + * | |
| 292 | + * @return \Doctrine\Common\Collections\Collection | |
| 293 | + */ | |
| 294 | + public function getAmbienteDetalles() | |
| 295 | + { | |
| 296 | + return $this->ambienteDetalles; | |
| 297 | + } | |
| 298 | + | |
| 299 | + /** | |
| 300 | + * Set parroquia | |
| 301 | + * | |
| 302 | + * @param \UBV\SurUbvBundle\Entity\Parroquia $parroquia | |
| 303 | + * @return Ambiente | |
| 304 | + */ | |
| 305 | + public function setParroquia(\UBV\SurUbvBundle\Entity\Parroquia $parroquia) | |
| 306 | + { | |
| 307 | + $this->parroquia = $parroquia; | |
| 308 | + | |
| 309 | + return $this; | |
| 310 | + } | |
| 311 | + | |
| 312 | + /** | |
| 313 | + * Get parroquia | |
| 314 | + * | |
| 315 | + * @return \UBV\SurUbvBundle\Entity\Parroquia | |
| 316 | + */ | |
| 317 | + public function getParroquia() | |
| 318 | + { | |
| 319 | + return $this->parroquia; | |
| 320 | + } | |
| 321 | + | |
| 322 | + public function __toString() { | |
| 323 | + return $this->getDescripcion(); | |
| 324 | + } | |
| 325 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AmbienteDetalle.php
| ... | ... | @@ -0,0 +1,254 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | +use Symfony\Component\Validator\Constraints as Assert; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * UBV\SurUbvBundle\Entity\AmbienteDetalle | |
| 11 | + * | |
| 12 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AmbienteDetalleRepository") | |
| 13 | + * @ORM\Table(name="ambiente_detalle", indexes={@ORM\Index(name="fk_ambiente_detalle_ambiente1_idx", columns={"ambiente_id"}), @ORM\Index(name="fk_ambiente_detalle_ambiente_detalle1_idx", columns={"dependencia_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_ambiente_detalle_UNIQUE", columns={"id"})}) | |
| 14 | + */ | |
| 15 | +class AmbienteDetalle | |
| 16 | +{ | |
| 17 | + /** | |
| 18 | + * @ORM\Id | |
| 19 | + * @ORM\Column(type="integer") | |
| 20 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 21 | + * @ORM\SequenceGenerator(sequenceName="ambiente_detalle_id_seq", allocationSize=1, initialValue=1) | |
| 22 | + */ | |
| 23 | + protected $id; | |
| 24 | + | |
| 25 | + /** | |
| 26 | + *@Assert\NotNull(message= "Por favor introduzca un nombre", groups={"Default"}) | |
| 27 | + *@Assert\NotBlank( message= "Por favor introduzca un nombre Notas Valido", groups={"Default"}) | |
| 28 | + *@Assert\Length( | |
| 29 | + * min = "2", | |
| 30 | + * max = "70", | |
| 31 | + * minMessage = "El Detalle del Ambiente debe tener ser minimo {{ limit }}", | |
| 32 | + * maxMessage = "El Detalle del Ambiente debe tener no debe exceder de {{ limit }}" | |
| 33 | + *) | |
| 34 | + *@Assert\Type(type="string", message="El valor {{ value }} no es valido {{ type }}.") | |
| 35 | + *) | |
| 36 | + *@Assert\Regex( | |
| 37 | + * pattern="/\d/", | |
| 38 | + * match=false, | |
| 39 | + * message=" El Eje Regional no debe contener numeros") | |
| 40 | + * @ORM\Column(type="string", length=70) | |
| 41 | + */ | |
| 42 | + protected $descripcion; | |
| 43 | + | |
| 44 | + /** | |
| 45 | + * @ORM\Column(type="string", length=2) | |
| 46 | + */ | |
| 47 | + protected $estatus; | |
| 48 | + | |
| 49 | + /** | |
| 50 | + * @ORM\OneToMany(targetEntity="AmbienteDetalle", mappedBy="ambienteDetalle") | |
| 51 | + * @ORM\JoinColumn(name="id", referencedColumnName="dependencia_id", nullable=false) | |
| 52 | + */ | |
| 53 | + protected $ambienteDetalles; | |
| 54 | + | |
| 55 | + /** | |
| 56 | + * @ORM\OneToMany(targetEntity="AmbienteEspacio", mappedBy="ambienteDetalle") | |
| 57 | + * @ORM\JoinColumn(name="id", referencedColumnName="ambiente_detalle_id", nullable=false) | |
| 58 | + */ | |
| 59 | + protected $ambienteEspacios; | |
| 60 | + | |
| 61 | + /** | |
| 62 | + * @ORM\ManyToOne(targetEntity="Ambiente", inversedBy="ambienteDetalles") | |
| 63 | + * @ORM\JoinColumn(name="ambiente_id", referencedColumnName="id", nullable=false) | |
| 64 | + */ | |
| 65 | + protected $ambiente; | |
| 66 | + | |
| 67 | + /** | |
| 68 | + * @ORM\ManyToOne(targetEntity="AmbienteDetalle", inversedBy="ambienteDetalles") | |
| 69 | + * @ORM\JoinColumn(name="dependencia_id", referencedColumnName="id") | |
| 70 | + */ | |
| 71 | + protected $ambienteDetalle; | |
| 72 | + | |
| 73 | + public function __construct() | |
| 74 | + { | |
| 75 | + $this->ambienteDetalles = new ArrayCollection(); | |
| 76 | + $this->ambienteEspacios = new ArrayCollection(); | |
| 77 | + } | |
| 78 | + | |
| 79 | + public function __sleep() | |
| 80 | + { | |
| 81 | + return array('id', 'descripcion', 'estatus', 'ambiente_id', 'dependencia_id'); | |
| 82 | + } | |
| 83 | + | |
| 84 | + /** | |
| 85 | + * Get id | |
| 86 | + * | |
| 87 | + * @return integer | |
| 88 | + */ | |
| 89 | + public function getId() | |
| 90 | + { | |
| 91 | + return $this->id; | |
| 92 | + } | |
| 93 | + | |
| 94 | + /** | |
| 95 | + * Set descripcion | |
| 96 | + * | |
| 97 | + * @param string $descripcion | |
| 98 | + * @return AmbienteDetalle | |
| 99 | + */ | |
| 100 | + public function setDescripcion($descripcion) | |
| 101 | + { | |
| 102 | + $this->descripcion = $descripcion; | |
| 103 | + | |
| 104 | + return $this; | |
| 105 | + } | |
| 106 | + | |
| 107 | + /** | |
| 108 | + * Get descripcion | |
| 109 | + * | |
| 110 | + * @return string | |
| 111 | + */ | |
| 112 | + public function getDescripcion() | |
| 113 | + { | |
| 114 | + return $this->descripcion; | |
| 115 | + } | |
| 116 | + | |
| 117 | + /** | |
| 118 | + * Set estatus | |
| 119 | + * | |
| 120 | + * @param string $estatus | |
| 121 | + * @return AmbienteDetalle | |
| 122 | + */ | |
| 123 | + public function setEstatus($estatus) | |
| 124 | + { | |
| 125 | + $this->estatus = $estatus; | |
| 126 | + | |
| 127 | + return $this; | |
| 128 | + } | |
| 129 | + | |
| 130 | + /** | |
| 131 | + * Get estatus | |
| 132 | + * | |
| 133 | + * @return string | |
| 134 | + */ | |
| 135 | + public function getEstatus() | |
| 136 | + { | |
| 137 | + return $this->estatus; | |
| 138 | + } | |
| 139 | + | |
| 140 | + /** | |
| 141 | + * Add ambienteDetalles | |
| 142 | + * | |
| 143 | + * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles | |
| 144 | + * @return AmbienteDetalle | |
| 145 | + */ | |
| 146 | + public function addAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles) | |
| 147 | + { | |
| 148 | + $this->ambienteDetalles[] = $ambienteDetalles; | |
| 149 | + | |
| 150 | + return $this; | |
| 151 | + } | |
| 152 | + | |
| 153 | + /** | |
| 154 | + * Remove ambienteDetalles | |
| 155 | + * | |
| 156 | + * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles | |
| 157 | + */ | |
| 158 | + public function removeAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalles) | |
| 159 | + { | |
| 160 | + $this->ambienteDetalles->removeElement($ambienteDetalles); | |
| 161 | + } | |
| 162 | + | |
| 163 | + /** | |
| 164 | + * Get ambienteDetalles | |
| 165 | + * | |
| 166 | + * @return \Doctrine\Common\Collections\Collection | |
| 167 | + */ | |
| 168 | + public function getAmbienteDetalles() | |
| 169 | + { | |
| 170 | + return $this->ambienteDetalles; | |
| 171 | + } | |
| 172 | + | |
| 173 | + /** | |
| 174 | + * Add ambienteEspacios | |
| 175 | + * | |
| 176 | + * @param \UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacios | |
| 177 | + * @return AmbienteDetalle | |
| 178 | + */ | |
| 179 | + public function addAmbienteEspacio(\UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacios) | |
| 180 | + { | |
| 181 | + $this->ambienteEspacios[] = $ambienteEspacios; | |
| 182 | + | |
| 183 | + return $this; | |
| 184 | + } | |
| 185 | + | |
| 186 | + /** | |
| 187 | + * Remove ambienteEspacios | |
| 188 | + * | |
| 189 | + * @param \UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacios | |
| 190 | + */ | |
| 191 | + public function removeAmbienteEspacio(\UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacios) | |
| 192 | + { | |
| 193 | + $this->ambienteEspacios->removeElement($ambienteEspacios); | |
| 194 | + } | |
| 195 | + | |
| 196 | + /** | |
| 197 | + * Get ambienteEspacios | |
| 198 | + * | |
| 199 | + * @return \Doctrine\Common\Collections\Collection | |
| 200 | + */ | |
| 201 | + public function getAmbienteEspacios() | |
| 202 | + { | |
| 203 | + return $this->ambienteEspacios; | |
| 204 | + } | |
| 205 | + | |
| 206 | + /** | |
| 207 | + * Set ambiente | |
| 208 | + * | |
| 209 | + * @param \UBV\SurUbvBundle\Entity\Ambiente $ambiente | |
| 210 | + * @return AmbienteDetalle | |
| 211 | + */ | |
| 212 | + public function setAmbiente(\UBV\SurUbvBundle\Entity\Ambiente $ambiente) | |
| 213 | + { | |
| 214 | + $this->ambiente = $ambiente; | |
| 215 | + | |
| 216 | + return $this; | |
| 217 | + } | |
| 218 | + | |
| 219 | + /** | |
| 220 | + * Get ambiente | |
| 221 | + * | |
| 222 | + * @return \UBV\SurUbvBundle\Entity\Ambiente | |
| 223 | + */ | |
| 224 | + public function getAmbiente() | |
| 225 | + { | |
| 226 | + return $this->ambiente; | |
| 227 | + } | |
| 228 | + | |
| 229 | + /** | |
| 230 | + * Set ambienteDetalle | |
| 231 | + * | |
| 232 | + * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalle | |
| 233 | + * @return AmbienteDetalle | |
| 234 | + */ | |
| 235 | + public function setAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalle = null) | |
| 236 | + { | |
| 237 | + $this->ambienteDetalle = $ambienteDetalle; | |
| 238 | + | |
| 239 | + return $this; | |
| 240 | + } | |
| 241 | + | |
| 242 | + /** | |
| 243 | + * Get ambienteDetalle | |
| 244 | + * | |
| 245 | + * @return \UBV\SurUbvBundle\Entity\AmbienteDetalle | |
| 246 | + */ | |
| 247 | + public function getAmbienteDetalle() | |
| 248 | + { | |
| 249 | + return $this->ambienteDetalle; | |
| 250 | + } | |
| 251 | + public function __toString() { | |
| 252 | + return $this->getDescripcion(); | |
| 253 | + } | |
| 254 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AmbienteDetalleRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * AmbienteDetalleRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class AmbienteDetalleRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AmbienteEspacio.php
| ... | ... | @@ -0,0 +1,214 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | +use Symfony\Component\Validator\Constraints as Assert; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * UBV\SurUbvBundle\Entity\AmbienteEspacio | |
| 11 | + * | |
| 12 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AmbienteEspacioRepository") | |
| 13 | + * @ORM\Table(name="ambiente_espacio", indexes={@ORM\Index(name="fk_ambiente_espacio_tipo_espacio1_idx", columns={"tipo_espacio_id"}), @ORM\Index(name="fk_ambiente_espacio_ambiente_detalle1_idx", columns={"ambiente_detalle_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_ambiente_espacio_UNIQUE", columns={"id"})}) | |
| 14 | + */ | |
| 15 | +class AmbienteEspacio | |
| 16 | +{ | |
| 17 | + /** | |
| 18 | + * @ORM\Id | |
| 19 | + * @ORM\Column(type="integer") | |
| 20 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 21 | + * @ORM\SequenceGenerator(sequenceName="ambiente_espacio_id_seq", allocationSize=1, initialValue=1) | |
| 22 | + */ | |
| 23 | + protected $id; | |
| 24 | + | |
| 25 | + /** | |
| 26 | + *@Assert\NotNull(message= "Por favor introduzca un nombre", groups={"Default"}) | |
| 27 | + *@Assert\NotBlank( message= "Por favor introduzca un nombre Notas Valido", groups={"Default"}) | |
| 28 | + *@Assert\Length( | |
| 29 | + * min = "2", | |
| 30 | + * max = "70", | |
| 31 | + * minMessage = "El Espacio debe tener ser minimo {{ limit }}", | |
| 32 | + * maxMessage = "El Espacio no debe exceder de {{ limit }}" | |
| 33 | + *) | |
| 34 | + *@Assert\Type(type="string", message="El valor {{ value }} no es valido {{ type }}.") | |
| 35 | + *) | |
| 36 | + *@Assert\Regex( | |
| 37 | + * pattern="/\d/", | |
| 38 | + * match=false, | |
| 39 | + * message=" El Espacio no debe contener numeros") | |
| 40 | + * @ORM\Column(type="string", length=70) | |
| 41 | + */ | |
| 42 | + protected $descripcion; | |
| 43 | + | |
| 44 | + /** | |
| 45 | + *@Assert\NotNull(message= "Por favor introduzca un Codigo", groups={"Default"}) | |
| 46 | + *@Assert\NotBlank( message= "Por favor introduzca un Codigo Notas Valido", groups={"Default"}) | |
| 47 | + * @Assert\Type(type="string", message="El valor {{ value }} no es valido {{ type }}.") | |
| 48 | + * @ORM\Column(type="integer") | |
| 49 | + */ | |
| 50 | + protected $capacidad; | |
| 51 | + | |
| 52 | + /** | |
| 53 | + * @ORM\OneToMany(targetEntity="CargaAcademica", mappedBy="ambienteEspacio") | |
| 54 | + * @ORM\JoinColumn(name="id", referencedColumnName="ambiente_espacio_id", nullable=false) | |
| 55 | + */ | |
| 56 | + protected $cargaAcademicas; | |
| 57 | + | |
| 58 | + /** | |
| 59 | + * @ORM\ManyToOne(targetEntity="TipoEspacio", inversedBy="ambienteEspacios") | |
| 60 | + * @ORM\JoinColumn(name="tipo_espacio_id", referencedColumnName="id", nullable=false) | |
| 61 | + */ | |
| 62 | + protected $tipoEspacio; | |
| 63 | + | |
| 64 | + /** | |
| 65 | + * @ORM\ManyToOne(targetEntity="AmbienteDetalle", inversedBy="ambienteEspacios") | |
| 66 | + * @ORM\JoinColumn(name="ambiente_detalle_id", referencedColumnName="id", nullable=false) | |
| 67 | + */ | |
| 68 | + protected $ambienteDetalle; | |
| 69 | + | |
| 70 | + public function __construct() | |
| 71 | + { | |
| 72 | + $this->cargaAcademicas = new ArrayCollection(); | |
| 73 | + } | |
| 74 | + | |
| 75 | + public function __sleep() | |
| 76 | + { | |
| 77 | + return array('id', 'descripcion', 'capacidad', 'tipo_espacio_id', 'ambiente_detalle_id'); | |
| 78 | + } | |
| 79 | + | |
| 80 | + /** | |
| 81 | + * Get id | |
| 82 | + * | |
| 83 | + * @return integer | |
| 84 | + */ | |
| 85 | + public function getId() | |
| 86 | + { | |
| 87 | + return $this->id; | |
| 88 | + } | |
| 89 | + | |
| 90 | + /** | |
| 91 | + * Set descripcion | |
| 92 | + * | |
| 93 | + * @param string $descripcion | |
| 94 | + * @return AmbienteEspacio | |
| 95 | + */ | |
| 96 | + public function setDescripcion($descripcion) | |
| 97 | + { | |
| 98 | + $this->descripcion = $descripcion; | |
| 99 | + | |
| 100 | + return $this; | |
| 101 | + } | |
| 102 | + | |
| 103 | + /** | |
| 104 | + * Get descripcion | |
| 105 | + * | |
| 106 | + * @return string | |
| 107 | + */ | |
| 108 | + public function getDescripcion() | |
| 109 | + { | |
| 110 | + return $this->descripcion; | |
| 111 | + } | |
| 112 | + | |
| 113 | + /** | |
| 114 | + * Set capacidad | |
| 115 | + * | |
| 116 | + * @param integer $capacidad | |
| 117 | + * @return AmbienteEspacio | |
| 118 | + */ | |
| 119 | + public function setCapacidad($capacidad) | |
| 120 | + { | |
| 121 | + $this->capacidad = $capacidad; | |
| 122 | + | |
| 123 | + return $this; | |
| 124 | + } | |
| 125 | + | |
| 126 | + /** | |
| 127 | + * Get capacidad | |
| 128 | + * | |
| 129 | + * @return integer | |
| 130 | + */ | |
| 131 | + public function getCapacidad() | |
| 132 | + { | |
| 133 | + return $this->capacidad; | |
| 134 | + } | |
| 135 | + | |
| 136 | + /** | |
| 137 | + * Add cargaAcademicas | |
| 138 | + * | |
| 139 | + * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas | |
| 140 | + * @return AmbienteEspacio | |
| 141 | + */ | |
| 142 | + public function addCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas) | |
| 143 | + { | |
| 144 | + $this->cargaAcademicas[] = $cargaAcademicas; | |
| 145 | + | |
| 146 | + return $this; | |
| 147 | + } | |
| 148 | + | |
| 149 | + /** | |
| 150 | + * Remove cargaAcademicas | |
| 151 | + * | |
| 152 | + * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas | |
| 153 | + */ | |
| 154 | + public function removeCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas) | |
| 155 | + { | |
| 156 | + $this->cargaAcademicas->removeElement($cargaAcademicas); | |
| 157 | + } | |
| 158 | + | |
| 159 | + /** | |
| 160 | + * Get cargaAcademicas | |
| 161 | + * | |
| 162 | + * @return \Doctrine\Common\Collections\Collection | |
| 163 | + */ | |
| 164 | + public function getCargaAcademicas() | |
| 165 | + { | |
| 166 | + return $this->cargaAcademicas; | |
| 167 | + } | |
| 168 | + | |
| 169 | + /** | |
| 170 | + * Set tipoEspacio | |
| 171 | + * | |
| 172 | + * @param \UBV\SurUbvBundle\Entity\TipoEspacio $tipoEspacio | |
| 173 | + * @return AmbienteEspacio | |
| 174 | + */ | |
| 175 | + public function setTipoEspacio(\UBV\SurUbvBundle\Entity\TipoEspacio $tipoEspacio) | |
| 176 | + { | |
| 177 | + $this->tipoEspacio = $tipoEspacio; | |
| 178 | + | |
| 179 | + return $this; | |
| 180 | + } | |
| 181 | + | |
| 182 | + /** | |
| 183 | + * Get tipoEspacio | |
| 184 | + * | |
| 185 | + * @return \UBV\SurUbvBundle\Entity\TipoEspacio | |
| 186 | + */ | |
| 187 | + public function getTipoEspacio() | |
| 188 | + { | |
| 189 | + return $this->tipoEspacio; | |
| 190 | + } | |
| 191 | + | |
| 192 | + /** | |
| 193 | + * Set ambienteDetalle | |
| 194 | + * | |
| 195 | + * @param \UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalle | |
| 196 | + * @return AmbienteEspacio | |
| 197 | + */ | |
| 198 | + public function setAmbienteDetalle(\UBV\SurUbvBundle\Entity\AmbienteDetalle $ambienteDetalle) | |
| 199 | + { | |
| 200 | + $this->ambienteDetalle = $ambienteDetalle; | |
| 201 | + | |
| 202 | + return $this; | |
| 203 | + } | |
| 204 | + | |
| 205 | + /** | |
| 206 | + * Get ambienteDetalle | |
| 207 | + * | |
| 208 | + * @return \UBV\SurUbvBundle\Entity\AmbienteDetalle | |
| 209 | + */ | |
| 210 | + public function getAmbienteDetalle() | |
| 211 | + { | |
| 212 | + return $this->ambienteDetalle; | |
| 213 | + } | |
| 214 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AmbienteEspacioRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * AmbienteEspacioRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class AmbienteEspacioRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AmbienteRepository.php
| ... | ... | @@ -0,0 +1,34 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | +use Doctrine\ORM\Query\Expr\Join; | |
| 7 | + | |
| 8 | +use Doctrine\ORM\Query; | |
| 9 | + | |
| 10 | +/** | |
| 11 | + * AmbienteRepository | |
| 12 | + * | |
| 13 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 14 | + * repository methods below. | |
| 15 | + */ | |
| 16 | +class AmbienteRepository extends EntityRepository | |
| 17 | +{ | |
| 18 | + public function findEstadosByPaisId($parroquia_id) | |
| 19 | + { | |
| 20 | + $em = $this->getEntityManager(); | |
| 21 | + | |
| 22 | + //die(dump($pais_id)); | |
| 23 | + $result = $em->createQueryBuilder(); | |
| 24 | + | |
| 25 | + $dql = $result -> select ('ambiente') | |
| 26 | + ->from('UBVSurUbvBundle:Ambiente', 'ambiente') | |
| 27 | + ->Join('ambiente.parroquia', 'parroquia', 'parroquia.id = ambiente.parroquia') | |
| 28 | + ->where('parroquia.id = :parroquia_id') | |
| 29 | + ->setParameter('parroquia_id',$parroquia_id) | |
| 30 | + ->getQuery() | |
| 31 | + ->getResult(Query::HYDRATE_ARRAY); | |
| 32 | + return $dql; | |
| 33 | + } | |
| 34 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/Arancel.php
| ... | ... | @@ -0,0 +1,253 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\Arancel | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\ArancelRepository") | |
| 12 | + * @ORM\Table(name="arancel", uniqueConstraints={@ORM\UniqueConstraint(name="id_arancel_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class Arancel | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="arancel_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="date") | |
| 26 | + */ | |
| 27 | + protected $fecha_inicio; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\Column(type="date") | |
| 31 | + */ | |
| 32 | + protected $fecha_fin; | |
| 33 | + | |
| 34 | + /** | |
| 35 | + * @ORM\Column(type="string", length=120) | |
| 36 | + */ | |
| 37 | + protected $descripcion; | |
| 38 | + | |
| 39 | + /** | |
| 40 | + * @ORM\Column(type="float") | |
| 41 | + */ | |
| 42 | + protected $cantidad_ut; | |
| 43 | + | |
| 44 | + /** | |
| 45 | + * @ORM\Column(type="boolean") | |
| 46 | + */ | |
| 47 | + protected $estatus; | |
| 48 | + | |
| 49 | + /** | |
| 50 | + * @ORM\Column(type="boolean") | |
| 51 | + */ | |
| 52 | + protected $clase; | |
| 53 | + | |
| 54 | + /** | |
| 55 | + * @ORM\ManyToMany(targetEntity="Deposito", mappedBy="arancels") | |
| 56 | + */ | |
| 57 | + protected $depositos; | |
| 58 | + | |
| 59 | + public function __construct() | |
| 60 | + { | |
| 61 | + $this->depositos = new ArrayCollection(); | |
| 62 | + } | |
| 63 | + | |
| 64 | + public function __sleep() | |
| 65 | + { | |
| 66 | + return array('id', 'fecha_inicio', 'fecha_fin', 'descripcion', 'cantidad_ut', 'estatus', 'clase'); | |
| 67 | + } | |
| 68 | + | |
| 69 | + /** | |
| 70 | + * Get id | |
| 71 | + * | |
| 72 | + * @return integer | |
| 73 | + */ | |
| 74 | + public function getId() | |
| 75 | + { | |
| 76 | + return $this->id; | |
| 77 | + } | |
| 78 | + | |
| 79 | + /** | |
| 80 | + * Set fecha_inicio | |
| 81 | + * | |
| 82 | + * @param \DateTime $fechaInicio | |
| 83 | + * @return Arancel | |
| 84 | + */ | |
| 85 | + public function setFechaInicio($fechaInicio) | |
| 86 | + { | |
| 87 | + $this->fecha_inicio = $fechaInicio; | |
| 88 | + | |
| 89 | + return $this; | |
| 90 | + } | |
| 91 | + | |
| 92 | + /** | |
| 93 | + * Get fecha_inicio | |
| 94 | + * | |
| 95 | + * @return \DateTime | |
| 96 | + */ | |
| 97 | + public function getFechaInicio() | |
| 98 | + { | |
| 99 | + return $this->fecha_inicio; | |
| 100 | + } | |
| 101 | + | |
| 102 | + /** | |
| 103 | + * Set fecha_fin | |
| 104 | + * | |
| 105 | + * @param \DateTime $fechaFin | |
| 106 | + * @return Arancel | |
| 107 | + */ | |
| 108 | + public function setFechaFin($fechaFin) | |
| 109 | + { | |
| 110 | + $this->fecha_fin = $fechaFin; | |
| 111 | + | |
| 112 | + return $this; | |
| 113 | + } | |
| 114 | + | |
| 115 | + /** | |
| 116 | + * Get fecha_fin | |
| 117 | + * | |
| 118 | + * @return \DateTime | |
| 119 | + */ | |
| 120 | + public function getFechaFin() | |
| 121 | + { | |
| 122 | + return $this->fecha_fin; | |
| 123 | + } | |
| 124 | + | |
| 125 | + /** | |
| 126 | + * Set descripcion | |
| 127 | + * | |
| 128 | + * @param string $descripcion | |
| 129 | + * @return Arancel | |
| 130 | + */ | |
| 131 | + public function setDescripcion($descripcion) | |
| 132 | + { | |
| 133 | + $this->descripcion = $descripcion; | |
| 134 | + | |
| 135 | + return $this; | |
| 136 | + } | |
| 137 | + | |
| 138 | + /** | |
| 139 | + * Get descripcion | |
| 140 | + * | |
| 141 | + * @return string | |
| 142 | + */ | |
| 143 | + public function getDescripcion() | |
| 144 | + { | |
| 145 | + return $this->descripcion; | |
| 146 | + } | |
| 147 | + | |
| 148 | + /** | |
| 149 | + * Set cantidad_ut | |
| 150 | + * | |
| 151 | + * @param float $cantidadUt | |
| 152 | + * @return Arancel | |
| 153 | + */ | |
| 154 | + public function setCantidadUt($cantidadUt) | |
| 155 | + { | |
| 156 | + $this->cantidad_ut = $cantidadUt; | |
| 157 | + | |
| 158 | + return $this; | |
| 159 | + } | |
| 160 | + | |
| 161 | + /** | |
| 162 | + * Get cantidad_ut | |
| 163 | + * | |
| 164 | + * @return float | |
| 165 | + */ | |
| 166 | + public function getCantidadUt() | |
| 167 | + { | |
| 168 | + return $this->cantidad_ut; | |
| 169 | + } | |
| 170 | + | |
| 171 | + /** | |
| 172 | + * Set estatus | |
| 173 | + * | |
| 174 | + * @param boolean $estatus | |
| 175 | + * @return Arancel | |
| 176 | + */ | |
| 177 | + public function setEstatus($estatus) | |
| 178 | + { | |
| 179 | + $this->estatus = $estatus; | |
| 180 | + | |
| 181 | + return $this; | |
| 182 | + } | |
| 183 | + | |
| 184 | + /** | |
| 185 | + * Set clase | |
| 186 | + * | |
| 187 | + * @param boolean $clase | |
| 188 | + * @return Arancel | |
| 189 | + */ | |
| 190 | + public function setClase($clase) | |
| 191 | + { | |
| 192 | + $this->clase = $clase; | |
| 193 | + | |
| 194 | + return $this; | |
| 195 | + } | |
| 196 | + | |
| 197 | + /** | |
| 198 | + * Get clase | |
| 199 | + * | |
| 200 | + * @return boolean | |
| 201 | + */ | |
| 202 | + public function getClase() | |
| 203 | + { | |
| 204 | + return $this->clase; | |
| 205 | + } | |
| 206 | + | |
| 207 | + /** | |
| 208 | + * Get depositos | |
| 209 | + * | |
| 210 | + * @return \Doctrine\Common\Collections\Collection | |
| 211 | + */ | |
| 212 | + public function getDepositos() | |
| 213 | + { | |
| 214 | + return $this->depositos; | |
| 215 | + } | |
| 216 | + | |
| 217 | + public function __toString() { | |
| 218 | + return $this->getDescripcion(); | |
| 219 | + } | |
| 220 | + | |
| 221 | + /** | |
| 222 | + * Get estatus | |
| 223 | + * | |
| 224 | + * @return boolean | |
| 225 | + */ | |
| 226 | + public function getEstatus() | |
| 227 | + { | |
| 228 | + return $this->estatus; | |
| 229 | + } | |
| 230 | + | |
| 231 | + /** | |
| 232 | + * Add depositos | |
| 233 | + * | |
| 234 | + * @param \UBV\SurUbvBundle\Entity\Deposito $depositos | |
| 235 | + * @return Arancel | |
| 236 | + */ | |
| 237 | + public function addDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) | |
| 238 | + { | |
| 239 | + $this->depositos[] = $depositos; | |
| 240 | + | |
| 241 | + return $this; | |
| 242 | + } | |
| 243 | + | |
| 244 | + /** | |
| 245 | + * Remove depositos | |
| 246 | + * | |
| 247 | + * @param \UBV\SurUbvBundle\Entity\Deposito $depositos | |
| 248 | + */ | |
| 249 | + public function removeDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) | |
| 250 | + { | |
| 251 | + $this->depositos->removeElement($depositos); | |
| 252 | + } | |
| 253 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/ArancelRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * ArancelRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class ArancelRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AreaConocimiento.php
| ... | ... | @@ -0,0 +1,99 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\AreaConocimiento | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AreaConocimientoRepository") | |
| 12 | + * @ORM\Table(name="area_conocimiento", uniqueConstraints={@ORM\UniqueConstraint(name="id_area_conocimiento_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class AreaConocimiento | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="area_conocimiento_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="string", length=45) | |
| 26 | + */ | |
| 27 | + protected $descripcion; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\OneToOne(targetEntity="CentroEstudio", mappedBy="areaConocimiento") | |
| 31 | + */ | |
| 32 | + protected $centroEstudio; | |
| 33 | + | |
| 34 | + public function __construct() | |
| 35 | + { | |
| 36 | + $this->centroEstudios = new ArrayCollection(); | |
| 37 | + } | |
| 38 | + | |
| 39 | + public function __sleep() | |
| 40 | + { | |
| 41 | + return array('id', 'descripcion'); | |
| 42 | + } | |
| 43 | + | |
| 44 | + /** | |
| 45 | + * Get id | |
| 46 | + * | |
| 47 | + * @return integer | |
| 48 | + */ | |
| 49 | + public function getId() | |
| 50 | + { | |
| 51 | + return $this->id; | |
| 52 | + } | |
| 53 | + | |
| 54 | + /** | |
| 55 | + * Set descripcion | |
| 56 | + * | |
| 57 | + * @param string $descripcion | |
| 58 | + * @return AreaConocimiento | |
| 59 | + */ | |
| 60 | + public function setDescripcion($descripcion) | |
| 61 | + { | |
| 62 | + $this->descripcion = $descripcion; | |
| 63 | + | |
| 64 | + return $this; | |
| 65 | + } | |
| 66 | + | |
| 67 | + /** | |
| 68 | + * Get descripcion | |
| 69 | + * | |
| 70 | + * @return string | |
| 71 | + */ | |
| 72 | + public function getDescripcion() | |
| 73 | + { | |
| 74 | + return $this->descripcion; | |
| 75 | + } | |
| 76 | + | |
| 77 | + /** | |
| 78 | + * Set centroEstudio | |
| 79 | + * | |
| 80 | + * @param \UBV\SurUbvBundle\Entity\CentroEstudio $centroEstudio | |
| 81 | + * @return AreaConocimiento | |
| 82 | + */ | |
| 83 | + public function setCentroEstudio(\UBV\SurUbvBundle\Entity\CentroEstudio $centroEstudio = null) | |
| 84 | + { | |
| 85 | + $this->centroEstudio = $centroEstudio; | |
| 86 | + | |
| 87 | + return $this; | |
| 88 | + } | |
| 89 | + | |
| 90 | + /** | |
| 91 | + * Get centroEstudio | |
| 92 | + * | |
| 93 | + * @return \UBV\SurUbvBundle\Entity\CentroEstudio | |
| 94 | + */ | |
| 95 | + public function getCentroEstudio() | |
| 96 | + { | |
| 97 | + return $this->centroEstudio; | |
| 98 | + } | |
| 99 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AreaConocimientoRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * AreaConocimientoRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class AreaConocimientoRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/Aspirante.php
| ... | ... | @@ -0,0 +1,446 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Symfony\Component\Validator\Constraints as Assert; | |
| 7 | +/** | |
| 8 | + * UBV\SurUbvBundle\Entity\Aspirante | |
| 9 | + * | |
| 10 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AspiranteRepository") | |
| 11 | + * @ORM\Table(name="aspirante", indexes={@ORM\Index(name="fk_aspirante_persona1_idx", columns={"persona_id"}), @ORM\Index(name="fk_aspirante_aspirante_tipo1_idx", columns={"aspirante_tipo_id"}), @ORM\Index(name="fk_aspirante_grado_academico1_idx", columns={"grado_academico_id"}), @ORM\Index(name="fk_aspirante_aldea1_idx", columns={"aldea_id"}), @ORM\Index(name="fk_aspirante_programa1_idx", columns={"programa_id"}), @ORM\Index(name="fk_aspirante_aspirante_estatus1_idx", columns={"aspirante_estatus_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_aspirante_UNIQUE", columns={"id"})}) | |
| 12 | + */ | |
| 13 | +class Aspirante | |
| 14 | +{ | |
| 15 | + /** | |
| 16 | + * @ORM\Id | |
| 17 | + * @ORM\Column(type="integer") | |
| 18 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 19 | + * @ORM\SequenceGenerator(sequenceName="aspirante_id_seq", allocationSize=1, initialValue=1) | |
| 20 | + */ | |
| 21 | + protected $id; | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * @Assert\NotNull(message= "Por favor introduzca el objetivo de la solicitud", groups={"Default"}) | |
| 25 | + * @Assert\NotBlank( message= "Por favor introduzca el objetivo de la solicitud", groups={"Default"}) | |
| 26 | + * | |
| 27 | + * @ORM\Column(type="float", nullable=true) | |
| 28 | + */ | |
| 29 | + protected $promedio_nota; | |
| 30 | + | |
| 31 | + /** | |
| 32 | + * @Assert\NotBlank( message= "Por favor introduzca el objetivo de la solicitud", groups={"Default"}) | |
| 33 | + * @ORM\Column(type="date", nullable=false) | |
| 34 | + */ | |
| 35 | + protected $ano_grado; | |
| 36 | + | |
| 37 | + /** | |
| 38 | + * @Assert\NotBlank( message= "Por favor introduzca el objetivo de la solicitud", groups={"Default"}) | |
| 39 | + * @ORM\Column(type="string", length=10, nullable=false) | |
| 40 | + */ | |
| 41 | + protected $periodo_asignado; | |
| 42 | + | |
| 43 | + /** | |
| 44 | + * @Assert\NotNull(message= "Por favor introduzca el objetivo de la solicitud", groups={"Pre-Grado"}) | |
| 45 | + * @Assert\NotBlank( message= "Por favor introduzca el objetivo de la solicitud", groups={"Pre-Grado"}) | |
| 46 | + * @ORM\Column(type="string", length=15, nullable=true) | |
| 47 | + */ | |
| 48 | + protected $codigo_opsu; | |
| 49 | + | |
| 50 | + /** | |
| 51 | + * @ORM\Column(type="string", length=70, nullable=false) | |
| 52 | + * @Assert\NotBlank( message= "Por favor introduzca el objetivo de la solicitud", groups={"Default"}) | |
| 53 | + * ) | |
| 54 | + */ | |
| 55 | + protected $institucion_tipo; | |
| 56 | + | |
| 57 | + /** | |
| 58 | + * @ORM\Column(type="string", length=70, nullable=false) | |
| 59 | + * | |
| 60 | + * @Assert\NotBlank( message= "Por favor introduzca el objetivo de la solicitud", groups={"Default"}) | |
| 61 | + * ) | |
| 62 | + */ | |
| 63 | + protected $institucion; | |
| 64 | + | |
| 65 | + /** | |
| 66 | + * @ORM\Column(type="boolean", nullable=false) | |
| 67 | + */ | |
| 68 | + protected $trabajo; | |
| 69 | + | |
| 70 | + /** | |
| 71 | + * @ORM\ManyToOne(targetEntity="Persona", inversedBy="aspirantes") | |
| 72 | + * @ORM\JoinColumn(name="persona_id", referencedColumnName="id", nullable=false) | |
| 73 | + */ | |
| 74 | + protected $persona; | |
| 75 | + | |
| 76 | + /** | |
| 77 | + * @ORM\ManyToOne(targetEntity="AspiranteTipo", inversedBy="aspirantes") | |
| 78 | + * @ORM\JoinColumn(name="aspirante_tipo_id", referencedColumnName="id", nullable=false) | |
| 79 | + */ | |
| 80 | + protected $aspiranteTipo; | |
| 81 | + | |
| 82 | + /** | |
| 83 | + * @ORM\ManyToOne(targetEntity="GradoAcademico", inversedBy="aspirantes") | |
| 84 | + * @ORM\JoinColumn(name="grado_academico_id", referencedColumnName="id", nullable=false) | |
| 85 | + */ | |
| 86 | + protected $gradoAcademico; | |
| 87 | + | |
| 88 | + /** | |
| 89 | + * @ORM\ManyToOne(targetEntity="Aldea", inversedBy="aspirantes") | |
| 90 | + * @ORM\JoinColumn(name="aldea_id", referencedColumnName="id", nullable=false) | |
| 91 | + */ | |
| 92 | + protected $aldea; | |
| 93 | + | |
| 94 | + /** | |
| 95 | + * @ORM\ManyToOne(targetEntity="Programa", inversedBy="aspirantes") | |
| 96 | + * @ORM\JoinColumn(name="programa_id", referencedColumnName="id", nullable=false) | |
| 97 | + */ | |
| 98 | + protected $programa; | |
| 99 | + | |
| 100 | + /** | |
| 101 | + * @ORM\ManyToOne(targetEntity="AspiranteEstatus", inversedBy="aspirantes") | |
| 102 | + * @ORM\JoinColumn(name="aspirante_estatus_id", referencedColumnName="id", nullable=false) | |
| 103 | + */ | |
| 104 | + protected $aspiranteEstatus; | |
| 105 | + | |
| 106 | + public function __construct() | |
| 107 | + { | |
| 108 | + } | |
| 109 | + | |
| 110 | + public function __sleep() | |
| 111 | + { | |
| 112 | + return array('id', 'promedio_nota', 'aรฑo_grado', 'periodo_asignado', 'codigo_opsu', 'persona_id', 'aspirante_tipo_id', 'grado_academico_id', 'aldea_id', 'programa_id', 'aspirante_estatus_id', 'institucion_tipo', 'institucion', 'trabajo'); | |
| 113 | + } | |
| 114 | + | |
| 115 | + /** | |
| 116 | + * Get id | |
| 117 | + * | |
| 118 | + * @return integer | |
| 119 | + */ | |
| 120 | + public function getId() | |
| 121 | + { | |
| 122 | + return $this->id; | |
| 123 | + } | |
| 124 | + | |
| 125 | + /** | |
| 126 | + * Set promedio_nota | |
| 127 | + * | |
| 128 | + * @param float $promedioNota | |
| 129 | + * @return Aspirante | |
| 130 | + */ | |
| 131 | + public function setPromedioNota($promedioNota) | |
| 132 | + { | |
| 133 | + $this->promedio_nota = $promedioNota; | |
| 134 | + | |
| 135 | + return $this; | |
| 136 | + } | |
| 137 | + | |
| 138 | + /** | |
| 139 | + * Get promedio_nota | |
| 140 | + * | |
| 141 | + * @return float | |
| 142 | + */ | |
| 143 | + public function getPromedioNota() | |
| 144 | + { | |
| 145 | + return $this->promedio_nota; | |
| 146 | + } | |
| 147 | + | |
| 148 | + /** | |
| 149 | + * Set aรฑo_grado | |
| 150 | + * | |
| 151 | + * @param integer $aรฑoGrado | |
| 152 | + * @return Aspirante | |
| 153 | + */ | |
| 154 | + public function setAรฑoGrado($aรฑoGrado) | |
| 155 | + { | |
| 156 | + $this->aรฑo_grado = $aรฑoGrado; | |
| 157 | + | |
| 158 | + return $this; | |
| 159 | + } | |
| 160 | + | |
| 161 | + /** | |
| 162 | + * Get aรฑo_grado | |
| 163 | + * | |
| 164 | + * @return integer | |
| 165 | + */ | |
| 166 | + public function getAรฑoGrado() | |
| 167 | + { | |
| 168 | + return $this->aรฑo_grado; | |
| 169 | + } | |
| 170 | + | |
| 171 | + /** | |
| 172 | + * Set periodo_asignado | |
| 173 | + * | |
| 174 | + * @param string $periodoAsignado | |
| 175 | + * @return Aspirante | |
| 176 | + */ | |
| 177 | + public function setPeriodoAsignado($periodoAsignado) | |
| 178 | + { | |
| 179 | + $this->periodo_asignado = $periodoAsignado; | |
| 180 | + | |
| 181 | + return $this; | |
| 182 | + } | |
| 183 | + | |
| 184 | + /** | |
| 185 | + * Get periodo_asignado | |
| 186 | + * | |
| 187 | + * @return string | |
| 188 | + */ | |
| 189 | + public function getPeriodoAsignado() | |
| 190 | + { | |
| 191 | + return $this->periodo_asignado; | |
| 192 | + } | |
| 193 | + | |
| 194 | + /** | |
| 195 | + * Set codigo_opsu | |
| 196 | + * | |
| 197 | + * @param string $codigoOpsu | |
| 198 | + * @return Aspirante | |
| 199 | + */ | |
| 200 | + public function setCodigoOpsu($codigoOpsu) | |
| 201 | + { | |
| 202 | + $this->codigo_opsu = $codigoOpsu; | |
| 203 | + | |
| 204 | + return $this; | |
| 205 | + } | |
| 206 | + | |
| 207 | + /** | |
| 208 | + * Get codigo_opsu | |
| 209 | + * | |
| 210 | + * @return string | |
| 211 | + */ | |
| 212 | + public function getCodigoOpsu() | |
| 213 | + { | |
| 214 | + return $this->codigo_opsu; | |
| 215 | + } | |
| 216 | + | |
| 217 | + /** | |
| 218 | + * Set institucion_tipo | |
| 219 | + * | |
| 220 | + * @param string $institucionTipo | |
| 221 | + * @return Aspirante | |
| 222 | + */ | |
| 223 | + public function setInstitucionTipo($institucionTipo) | |
| 224 | + { | |
| 225 | + $this->institucion_tipo = $institucionTipo; | |
| 226 | + | |
| 227 | + return $this; | |
| 228 | + } | |
| 229 | + | |
| 230 | + /** | |
| 231 | + * Get institucion_tipo | |
| 232 | + * | |
| 233 | + * @return string | |
| 234 | + */ | |
| 235 | + public function getInstitucionTipo() | |
| 236 | + { | |
| 237 | + return $this->institucion_tipo; | |
| 238 | + } | |
| 239 | + | |
| 240 | + /** | |
| 241 | + * Set institucion | |
| 242 | + * | |
| 243 | + * @param string $institucion | |
| 244 | + * @return Aspirante | |
| 245 | + */ | |
| 246 | + public function setInstitucion($institucion) | |
| 247 | + { | |
| 248 | + $this->institucion = $institucion; | |
| 249 | + | |
| 250 | + return $this; | |
| 251 | + } | |
| 252 | + | |
| 253 | + /** | |
| 254 | + * Get institucion | |
| 255 | + * | |
| 256 | + * @return string | |
| 257 | + */ | |
| 258 | + public function getInstitucion() | |
| 259 | + { | |
| 260 | + return $this->institucion; | |
| 261 | + } | |
| 262 | + | |
| 263 | + /** | |
| 264 | + * Set trabajo | |
| 265 | + * | |
| 266 | + * @param boolean $trabajo | |
| 267 | + * @return Aspirante | |
| 268 | + */ | |
| 269 | + public function setTrabajo($trabajo) | |
| 270 | + { | |
| 271 | + $this->trabajo = $trabajo; | |
| 272 | + | |
| 273 | + return $this; | |
| 274 | + } | |
| 275 | + | |
| 276 | + /** | |
| 277 | + * Get trabajo | |
| 278 | + * | |
| 279 | + * @return boolean | |
| 280 | + */ | |
| 281 | + public function getTrabajo() | |
| 282 | + { | |
| 283 | + return $this->trabajo; | |
| 284 | + } | |
| 285 | + | |
| 286 | + /** | |
| 287 | + * Set persona | |
| 288 | + * | |
| 289 | + * @param \UBV\SurUbvBundle\Entity\Persona $persona | |
| 290 | + * @return Aspirante | |
| 291 | + */ | |
| 292 | + public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona = null) | |
| 293 | + { | |
| 294 | + $this->persona = $persona; | |
| 295 | + | |
| 296 | + return $this; | |
| 297 | + } | |
| 298 | + | |
| 299 | + /** | |
| 300 | + * Get persona | |
| 301 | + * | |
| 302 | + * @return \UBV\SurUbvBundle\Entity\Persona | |
| 303 | + */ | |
| 304 | + public function getPersona() | |
| 305 | + { | |
| 306 | + return $this->persona; | |
| 307 | + } | |
| 308 | + | |
| 309 | + /** | |
| 310 | + * Set aspiranteTipo | |
| 311 | + * | |
| 312 | + * @param \UBV\SurUbvBundle\Entity\AspiranteTipo $aspiranteTipo | |
| 313 | + * @return Aspirante | |
| 314 | + */ | |
| 315 | + public function setAspiranteTipo(\UBV\SurUbvBundle\Entity\AspiranteTipo $aspiranteTipo) | |
| 316 | + { | |
| 317 | + $this->aspiranteTipo = $aspiranteTipo; | |
| 318 | + | |
| 319 | + return $this; | |
| 320 | + } | |
| 321 | + | |
| 322 | + /** | |
| 323 | + * Get aspiranteTipo | |
| 324 | + * | |
| 325 | + * @return \UBV\SurUbvBundle\Entity\AspiranteTipo | |
| 326 | + */ | |
| 327 | + public function getAspiranteTipo() | |
| 328 | + { | |
| 329 | + return $this->aspiranteTipo; | |
| 330 | + } | |
| 331 | + | |
| 332 | + /** | |
| 333 | + * Set gradoAcademico | |
| 334 | + * | |
| 335 | + * @param \UBV\SurUbvBundle\Entity\GradoAcademico $gradoAcademico | |
| 336 | + * @return Aspirante | |
| 337 | + */ | |
| 338 | + public function setGradoAcademico(\UBV\SurUbvBundle\Entity\GradoAcademico $gradoAcademico) | |
| 339 | + { | |
| 340 | + $this->gradoAcademico = $gradoAcademico; | |
| 341 | + | |
| 342 | + return $this; | |
| 343 | + } | |
| 344 | + | |
| 345 | + /** | |
| 346 | + * Get gradoAcademico | |
| 347 | + * | |
| 348 | + * @return \UBV\SurUbvBundle\Entity\GradoAcademico | |
| 349 | + */ | |
| 350 | + public function getGradoAcademico() | |
| 351 | + { | |
| 352 | + return $this->gradoAcademico; | |
| 353 | + } | |
| 354 | + | |
| 355 | + /** | |
| 356 | + * Set aldea | |
| 357 | + * | |
| 358 | + * @param \UBV\SurUbvBundle\Entity\Aldea $aldea | |
| 359 | + * @return Aspirante | |
| 360 | + */ | |
| 361 | + public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) | |
| 362 | + { | |
| 363 | + $this->aldea = $aldea; | |
| 364 | + | |
| 365 | + return $this; | |
| 366 | + } | |
| 367 | + | |
| 368 | + /** | |
| 369 | + * Get aldea | |
| 370 | + * | |
| 371 | + * @return \UBV\SurUbvBundle\Entity\Aldea | |
| 372 | + */ | |
| 373 | + public function getAldea() | |
| 374 | + { | |
| 375 | + return $this->aldea; | |
| 376 | + } | |
| 377 | + | |
| 378 | + /** | |
| 379 | + * Set programa | |
| 380 | + * | |
| 381 | + * @param \UBV\SurUbvBundle\Entity\Programa $programa | |
| 382 | + * @return Aspirante | |
| 383 | + */ | |
| 384 | + public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) | |
| 385 | + { | |
| 386 | + $this->programa = $programa; | |
| 387 | + | |
| 388 | + return $this; | |
| 389 | + } | |
| 390 | + | |
| 391 | + /** | |
| 392 | + * Get programa | |
| 393 | + * | |
| 394 | + * @return \UBV\SurUbvBundle\Entity\Programa | |
| 395 | + */ | |
| 396 | + public function getPrograma() | |
| 397 | + { | |
| 398 | + return $this->programa; | |
| 399 | + } | |
| 400 | + | |
| 401 | + /** | |
| 402 | + * Set aspiranteEstatus | |
| 403 | + * | |
| 404 | + * @param \UBV\SurUbvBundle\Entity\AspiranteEstatus $aspiranteEstatus | |
| 405 | + * @return Aspirante | |
| 406 | + */ | |
| 407 | + public function setAspiranteEstatus(\UBV\SurUbvBundle\Entity\AspiranteEstatus $aspiranteEstatus) | |
| 408 | + { | |
| 409 | + $this->aspiranteEstatus = $aspiranteEstatus; | |
| 410 | + | |
| 411 | + return $this; | |
| 412 | + } | |
| 413 | + | |
| 414 | + /** | |
| 415 | + * Get aspiranteEstatus | |
| 416 | + * | |
| 417 | + * @return \UBV\SurUbvBundle\Entity\AspiranteEstatus | |
| 418 | + */ | |
| 419 | + public function getAspiranteEstatus() | |
| 420 | + { | |
| 421 | + return $this->aspiranteEstatus; | |
| 422 | + } | |
| 423 | + | |
| 424 | + /** | |
| 425 | + * Set ano_grado | |
| 426 | + * | |
| 427 | + * @param integer $anoGrado | |
| 428 | + * @return Aspirante | |
| 429 | + */ | |
| 430 | + public function setAnoGrado($anoGrado) | |
| 431 | + { | |
| 432 | + $this->ano_grado = $anoGrado; | |
| 433 | + | |
| 434 | + return $this; | |
| 435 | + } | |
| 436 | + | |
| 437 | + /** | |
| 438 | + * Get ano_grado | |
| 439 | + * | |
| 440 | + * @return integer | |
| 441 | + */ | |
| 442 | + public function getAnoGrado() | |
| 443 | + { | |
| 444 | + return $this->ano_grado; | |
| 445 | + } | |
| 446 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AspiranteEstatus.php
| ... | ... | @@ -0,0 +1,177 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\AspiranteEstatus | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\AspiranteEstatusRepository") | |
| 12 | + * @ORM\Table(name="aspirante_estatus", uniqueConstraints={@ORM\UniqueConstraint(name="id_aspirante_estatus_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class AspiranteEstatus | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="aspirante_estatus_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="string", length=45) | |
| 26 | + */ | |
| 27 | + protected $descripcion; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\OneToMany(targetEntity="Aspirante", mappedBy="aspiranteEstatus") | |
| 31 | + * @ORM\JoinColumn(name="id", referencedColumnName="aspirante_estatus_id", nullable=false) | |
| 32 | + */ | |
| 33 | + protected $aspirantes; | |
| 34 | + | |
| 35 | + /** | |
| 36 | + * @ORM\OneToMany(targetEntity="Candidato", mappedBy="aspiranteEstatus") | |
| 37 | + * @ORM\JoinColumn(name="id", referencedColumnName="aspirante_estatus_id", nullable=false) | |
| 38 | + */ | |
| 39 | + protected $candidatos; | |
| 40 | + | |
| 41 | + public function __construct() | |
| 42 | + { | |
| 43 | + $this->candidatos = new ArrayCollection(); | |
| 44 | + $this->aspirantes = new ArrayCollection(); | |
| 45 | + } | |
| 46 | + | |
| 47 | + public function __sleep() | |
| 48 | + { | |
| 49 | + return array('id', 'descripcion'); | |
| 50 | + } | |
| 51 | + | |
| 52 | + /** | |
| 53 | + * Get id | |
| 54 | + * | |
| 55 | + * @return integer | |
| 56 | + */ | |
| 57 | + public function getId() | |
| 58 | + { | |
| 59 | + return $this->id; | |
| 60 | + } | |
| 61 | + | |
| 62 | + /** | |
| 63 | + * Set descripcion | |
| 64 | + * | |
| 65 | + * @param string $descripcion | |
| 66 | + * @return AspiranteEstatus | |
| 67 | + */ | |
| 68 | + public function setDesripcion($descripcion) | |
| 69 | + { | |
| 70 | + $this->descripcion = $descripcion; | |
| 71 | + | |
| 72 | + return $this; | |
| 73 | + } | |
| 74 | + | |
| 75 | + /** | |
| 76 | + * Get descripcion | |
| 77 | + * | |
| 78 | + * @return string | |
| 79 | + */ | |
| 80 | + public function getDesripcion() | |
| 81 | + { | |
| 82 | + return $this->descripcion; | |
| 83 | + } | |
| 84 | + | |
| 85 | + /** | |
| 86 | + * Add aspirantes | |
| 87 | + * | |
| 88 | + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes | |
| 89 | + * @return AspiranteEstatus | |
| 90 | + */ | |
| 91 | + public function addAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) | |
| 92 | + { | |
| 93 | + $this->aspirantes[] = $aspirantes; | |
| 94 | + | |
| 95 | + return $this; | |
| 96 | + } | |
| 97 | + | |
| 98 | + /** | |
| 99 | + * Remove aspirantes | |
| 100 | + * | |
| 101 | + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes | |
| 102 | + */ | |
| 103 | + public function removeAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) | |
| 104 | + { | |
| 105 | + $this->aspirantes->removeElement($aspirantes); | |
| 106 | + } | |
| 107 | + | |
| 108 | + /** | |
| 109 | + * Get aspirantes | |
| 110 | + * | |
| 111 | + * @return \Doctrine\Common\Collections\Collection | |
| 112 | + */ | |
| 113 | + public function getAspirantes() | |
| 114 | + { | |
| 115 | + return $this->aspirantes; | |
| 116 | + } | |
| 117 | + | |
| 118 | + public function __toString(){ | |
| 119 | + return $this->getDesripcion(); | |
| 120 | + } | |
| 121 | + | |
| 122 | + /** | |
| 123 | + * Set descripcion | |
| 124 | + * | |
| 125 | + * @param string $descripcion | |
| 126 | + * @return AspiranteEstatus | |
| 127 | + */ | |
| 128 | + public function setDescripcion($descripcion) | |
| 129 | + { | |
| 130 | + $this->descripcion = $descripcion; | |
| 131 | + | |
| 132 | + return $this; | |
| 133 | + } | |
| 134 | + | |
| 135 | + /** | |
| 136 | + * Get descripcion | |
| 137 | + * | |
| 138 | + * @return string | |
| 139 | + */ | |
| 140 | + public function getDescripcion() | |
| 141 | + { | |
| 142 | + return $this->descripcion; | |
| 143 | + } | |
| 144 | + | |
| 145 | + /** | |
| 146 | + * Add candidatos | |
| 147 | + * | |
| 148 | + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
| 149 | + * @return AspiranteEstatus | |
| 150 | + */ | |
| 151 | + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
| 152 | + { | |
| 153 | + $this->candidatos[] = $candidatos; | |
| 154 | + | |
| 155 | + return $this; | |
| 156 | + } | |
| 157 | + | |
| 158 | + /** | |
| 159 | + * Remove candidatos | |
| 160 | + * | |
| 161 | + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
| 162 | + */ | |
| 163 | + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
| 164 | + { | |
| 165 | + $this->candidatos->removeElement($candidatos); | |
| 166 | + } | |
| 167 | + | |
| 168 | + /** | |
| 169 | + * Get candidatos | |
| 170 | + * | |
| 171 | + * @return \Doctrine\Common\Collections\Collection | |
| 172 | + */ | |
| 173 | + public function getCandidatos() | |
| 174 | + { | |
| 175 | + return $this->candidatos; | |
| 176 | + } | |
| 177 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AspiranteEstatusRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * AspiranteEstatusRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class AspiranteEstatusRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AspiranteRepository.php
| ... | ... | @@ -0,0 +1,88 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | +use Doctrine\ORM\Query\Expr\Join; | |
| 7 | +use Doctrine\ORM\Query; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * AspiranteRepository | |
| 11 | + * | |
| 12 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 13 | + * repository methods below. | |
| 14 | + */ | |
| 15 | +class AspiranteRepository extends EntityRepository | |
| 16 | +{ | |
| 17 | + public function findObjetoAspiranteByPersonaId($personaId, $programaTipo) { | |
| 18 | + $em = $this->getEntityManager(); | |
| 19 | + //die(var_dump($programaTipo)); | |
| 20 | + $result = $em->createQueryBuilder(); | |
| 21 | + | |
| 22 | + $dql = $result->select('aspirante') | |
| 23 | + ->from('UBVSurUbvBundle:Aspirante', 'aspirante') | |
| 24 | + ->Join('aspirante.persona', 'persona', 'aspirante.persona_id = persona.id') | |
| 25 | + ->Join('aspirante.programa', 'programa', 'aspirante.programa_id = programa.id') | |
| 26 | + ->Join('programa.programaTipo', 'tipoPrograma', 'programa.programa_tipo_id = tipoPrograma.id') | |
| 27 | + //->innerJoin('persona.estudianteDocumentos', 'documentos', 'persona.id = documentos.persona_id') | |
| 28 | + ->where('persona.id = :personaId') | |
| 29 | + ->AndWhere('programa.id = :programaId') | |
| 30 | + //->Andwhere('documentos.estatus = :estatusDocumentos') | |
| 31 | + ->setParameter('personaId', $personaId) | |
| 32 | + ->setParameter('programaId', $programaTipo) | |
| 33 | + //->setParameter('estatusDocumentos', true) | |
| 34 | + ->getQuery() | |
| 35 | + ->getOneOrNullResult(); | |
| 36 | + | |
| 37 | + //die(var_dump($dql)); | |
| 38 | + return $dql; | |
| 39 | + } | |
| 40 | + | |
| 41 | + public function findDatosAspirantes() { | |
| 42 | + | |
| 43 | + $em = $this->getEntityManager(); | |
| 44 | + | |
| 45 | + | |
| 46 | + //$primerNombre = $datos_form["primerNombre"]; | |
| 47 | + //$segundoNombre = $datos_form["segundoNombre"]; | |
| 48 | + //$primerApellido = $datos_form["primerApellido"]; | |
| 49 | + //$segundoApellido = $datos_form["segundoApellido"]; | |
| 50 | + | |
| 51 | + //$correoPersonal = $datos_form["correoPersonal"]; | |
| 52 | + | |
| 53 | + | |
| 54 | + $periodoAIniciar = $em->getRepository("UBVSurUbvBundle:PeriodoAcademico")->findObjetoPeriodoAcademicoByEstatus("Por Iniciar"); | |
| 55 | + //die(dump($periodoAIniciar["descripcion"])); | |
| 56 | + $result = $em->createQueryBuilder(); | |
| 57 | + | |
| 58 | + $dql = $result->select('aspirante.id as aspiranteId, aspirante.periodo_asignado as Periodo','aldea.descripcion as Aldea','aspiranteTipo.descripcion as aspiranteTipoDescripcion', | |
| 59 | + 'persona.id as personaId, persona.primer_nombre as primerNombre, persona.segundo_nombre as segundoNombre, persona.primer_apellido as primerApellido,' | |
| 60 | + .'persona.segundo_apellido as segundoApellido','programa.descripcion as ProgramaAsignado','documentoIdentidad.identificacion as Identificacion', | |
| 61 | + 'documentoIdentidadTipo.descripcion as DocumentoidentidadTipoDescripcion' | |
| 62 | + ) | |
| 63 | + ->from('UBVSurUbvBundle:Aspirante', 'aspirante') | |
| 64 | + ->leftJoin('aspirante.persona','persona','aspirante.persona_id = persona.id') | |
| 65 | + ->leftJoin('aspirante.aldea','aldea','aspirante.aldea_id = aldea.id') | |
| 66 | + ->leftJoin('aspirante.aspiranteTipo','aspiranteTipo','aspirante.tipo_id = aspiranteTipo.id') | |
| 67 | + ->leftJoin('aspirante.programa','programa','aspirante.programa_id = programa.id') | |
| 68 | + ->leftJoin('persona.personaNacionalidads','documentoIdentidad','persona.id = documentoIdentidad.persona_id') | |
| 69 | + ->leftJoin('documentoIdentidad.documentoIdentidadTipo','documentoIdentidadTipo','documentoIdentidad.documento>_identidad_tipo_id = documentoIdentidadTipo.id') | |
| 70 | + | |
| 71 | + ->where('aspirante.periodo_asignado LIKE :periodoAIniciar') | |
| 72 | + | |
| 73 | + ->setParameter('periodoAIniciar', '%' . $periodoAIniciar["descripcion"] . '%') | |
| 74 | + ->getQuery() | |
| 75 | + ->getResult(Query::HYDRATE_ARRAY); | |
| 76 | + | |
| 77 | + //die(dump($dql)); | |
| 78 | + | |
| 79 | + if (!empty($dql)) { | |
| 80 | + //die(var_dump($dql)); | |
| 81 | + return $dql; | |
| 82 | + } else { | |
| 83 | + //die("no trae nada"); | |
| 84 | + return false; | |
| 85 | + } | |
| 86 | + } | |
| 87 | + | |
| 88 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/AspiranteTipo.php
| ... | ... | @@ -0,0 +1,194 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\AspiranteTipo | |
| 10 | + * | |
| 11 | + * @ORM\Entity() | |
| 12 | + * @ORM\Table(name="aspirante_tipo", uniqueConstraints={@ORM\UniqueConstraint(name="id_aspirante_tipo_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class AspiranteTipo | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="aspirante_tipo_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="string", length=45) | |
| 26 | + */ | |
| 27 | + protected $descripcion; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\OneToMany(targetEntity="Aspirante", mappedBy="aspiranteTipo") | |
| 31 | + * @ORM\JoinColumn(name="id", referencedColumnName="aspirante_tipo_id", nullable=false) | |
| 32 | + */ | |
| 33 | + protected $aspirantes; | |
| 34 | + | |
| 35 | + /** | |
| 36 | + * @ORM\OneToMany(targetEntity="Candidato", mappedBy="aspiranteTipo") | |
| 37 | + * @ORM\JoinColumn(name="id", referencedColumnName="aspirante_tipo_id", nullable=false) | |
| 38 | + */ | |
| 39 | + protected $candidatos; | |
| 40 | + | |
| 41 | + /** | |
| 42 | + * @ORM\OneToMany(targetEntity="Estudiante", mappedBy="aspiranteTipo") | |
| 43 | + * @ORM\JoinColumn(name="id", referencedColumnName="aspirante_tipo_id", nullable=false) | |
| 44 | + */ | |
| 45 | + protected $estudiantes; | |
| 46 | + | |
| 47 | + public function __construct() | |
| 48 | + { | |
| 49 | + $this->aspirantes = new ArrayCollection(); | |
| 50 | + $this->candidatos = new ArrayCollection(); | |
| 51 | + $this->estudiantes = new ArrayCollection(); | |
| 52 | + } | |
| 53 | + | |
| 54 | + public function __sleep() | |
| 55 | + { | |
| 56 | + return array('id', 'descripcion'); | |
| 57 | + } | |
| 58 | + | |
| 59 | + /** | |
| 60 | + * Get id | |
| 61 | + * | |
| 62 | + * @return integer | |
| 63 | + */ | |
| 64 | + public function getId() | |
| 65 | + { | |
| 66 | + return $this->id; | |
| 67 | + } | |
| 68 | + | |
| 69 | + /** | |
| 70 | + * Set descripcion | |
| 71 | + * | |
| 72 | + * @param string $descripcion | |
| 73 | + * @return AspiranteTipo | |
| 74 | + */ | |
| 75 | + public function setDescripcion($descripcion) | |
| 76 | + { | |
| 77 | + $this->descripcion = $descripcion; | |
| 78 | + | |
| 79 | + return $this; | |
| 80 | + } | |
| 81 | + | |
| 82 | + /** | |
| 83 | + * Get descripcion | |
| 84 | + * | |
| 85 | + * @return string | |
| 86 | + */ | |
| 87 | + public function getDescripcion() | |
| 88 | + { | |
| 89 | + return $this->descripcion; | |
| 90 | + } | |
| 91 | + | |
| 92 | + /** | |
| 93 | + * Add aspirantes | |
| 94 | + * | |
| 95 | + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes | |
| 96 | + * @return AspiranteTipo | |
| 97 | + */ | |
| 98 | + public function addAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) | |
| 99 | + { | |
| 100 | + $this->aspirantes[] = $aspirantes; | |
| 101 | + | |
| 102 | + return $this; | |
| 103 | + } | |
| 104 | + | |
| 105 | + /** | |
| 106 | + * Remove aspirantes | |
| 107 | + * | |
| 108 | + * @param \UBV\SurUbvBundle\Entity\Aspirante $aspirantes | |
| 109 | + */ | |
| 110 | + public function removeAspirante(\UBV\SurUbvBundle\Entity\Aspirante $aspirantes) | |
| 111 | + { | |
| 112 | + $this->aspirantes->removeElement($aspirantes); | |
| 113 | + } | |
| 114 | + | |
| 115 | + /** | |
| 116 | + * Get aspirantes | |
| 117 | + * | |
| 118 | + * @return \Doctrine\Common\Collections\Collection | |
| 119 | + */ | |
| 120 | + public function getAspirantes() | |
| 121 | + { | |
| 122 | + return $this->aspirantes; | |
| 123 | + } | |
| 124 | + | |
| 125 | + /** | |
| 126 | + * Add estudiantes | |
| 127 | + * | |
| 128 | + * @param \UBV\SurUbvBundle\Entity\Estudiante $estudiantes | |
| 129 | + * @return AspiranteTipo | |
| 130 | + */ | |
| 131 | + public function addEstudiante(\UBV\SurUbvBundle\Entity\Estudiante $estudiantes) | |
| 132 | + { | |
| 133 | + $this->estudiantes[] = $estudiantes; | |
| 134 | + | |
| 135 | + return $this; | |
| 136 | + } | |
| 137 | + | |
| 138 | + /** | |
| 139 | + * Remove estudiantes | |
| 140 | + * | |
| 141 | + * @param \UBV\SurUbvBundle\Entity\Estudiante $estudiantes | |
| 142 | + */ | |
| 143 | + public function removeEstudiante(\UBV\SurUbvBundle\Entity\Estudiante $estudiantes) | |
| 144 | + { | |
| 145 | + $this->estudiantes->removeElement($estudiantes); | |
| 146 | + } | |
| 147 | + | |
| 148 | + /** | |
| 149 | + * Get estudiantes | |
| 150 | + * | |
| 151 | + * @return \Doctrine\Common\Collections\Collection | |
| 152 | + */ | |
| 153 | + public function getEstudiantes() | |
| 154 | + { | |
| 155 | + return $this->estudiantes; | |
| 156 | + } | |
| 157 | + | |
| 158 | + public function __toString(){ | |
| 159 | + return $this->getDescripcion(); | |
| 160 | + } | |
| 161 | + | |
| 162 | + /** | |
| 163 | + * Add candidatos | |
| 164 | + * | |
| 165 | + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
| 166 | + * @return AspiranteTipo | |
| 167 | + */ | |
| 168 | + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
| 169 | + { | |
| 170 | + $this->candidatos[] = $candidatos; | |
| 171 | + | |
| 172 | + return $this; | |
| 173 | + } | |
| 174 | + | |
| 175 | + /** | |
| 176 | + * Remove candidatos | |
| 177 | + * | |
| 178 | + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
| 179 | + */ | |
| 180 | + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
| 181 | + { | |
| 182 | + $this->candidatos->removeElement($candidatos); | |
| 183 | + } | |
| 184 | + | |
| 185 | + /** | |
| 186 | + * Get candidatos | |
| 187 | + * | |
| 188 | + * @return \Doctrine\Common\Collections\Collection | |
| 189 | + */ | |
| 190 | + public function getCandidatos() | |
| 191 | + { | |
| 192 | + return $this->candidatos; | |
| 193 | + } | |
| 194 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/Banco.php
| ... | ... | @@ -0,0 +1,157 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | +use Symfony\Component\Validator\Constraints as Assert; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * UBV\SurUbvBundle\Entity\Banco | |
| 11 | + * | |
| 12 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\BancoRepository") | |
| 13 | + * @ORM\Table(name="banco", uniqueConstraints={@ORM\UniqueConstraint(name="id_banco_UNIQUE", columns={"id"})}) | |
| 14 | + */ | |
| 15 | +class Banco | |
| 16 | +{ | |
| 17 | + /** | |
| 18 | + * @ORM\Id | |
| 19 | + * @ORM\Column(type="integer") | |
| 20 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 21 | + * @ORM\SequenceGenerator(sequenceName="banco_id_seq", allocationSize=1, initialValue=1) | |
| 22 | + */ | |
| 23 | + protected $id; | |
| 24 | + | |
| 25 | + /** | |
| 26 | + *@ORM\Column(type="string", length=150) | |
| 27 | + *@Assert\NotBlank( message= "Por favor introduzca la Descripciรณn del Banco") | |
| 28 | + *@Assert\NotNull(message= "Por favor introduzca la Descripciรณn del Banco", groups={"Default"}) | |
| 29 | + *@Assert\Length( | |
| 30 | + * min = 5, | |
| 31 | + * max = 150, | |
| 32 | + * minMessage = "Por favor introduzca un Nombre de Banco mรกs especรญfico. Mรญnimo {{ limit }} caracteres", | |
| 33 | + * maxMessage = "Por favor introduzca un Nombre de Banco mรกs breve. Mรกximo {{ limit }} caracteres", | |
| 34 | + *) | |
| 35 | + */ | |
| 36 | + protected $descripcion; | |
| 37 | + | |
| 38 | + /** | |
| 39 | + * @ORM\Column(type="string", length=15, nullable=true) | |
| 40 | + * @Assert\NotBlank( message= "Por favor introduzca el Cรณdigo del Banco") | |
| 41 | + * @Assert\Length( | |
| 42 | + * min = 5, | |
| 43 | + * max = 15, | |
| 44 | + * exactMessage = "Por favor introduzca un codigo Vรกlido. debe tener {{ limit }} caracteres", | |
| 45 | + * minMessage = "Por favor introduzca un codigo Vรกlido. Mรญnimo {{ limit }} caracteres", | |
| 46 | + * maxMessage = "Por favor introduzca un codigo Vรกlido. Mรกximo {{ limit }} caracteres", | |
| 47 | + * | |
| 48 | + * ) | |
| 49 | + * @Assert\NotNull(message="Este Campo no puede Ser Nulo") | |
| 50 | + */ | |
| 51 | + protected $codigo; | |
| 52 | + | |
| 53 | + /** | |
| 54 | + * @ORM\OneToMany(targetEntity="CuentaBancaria", mappedBy="banco") | |
| 55 | + * @ORM\JoinColumn(name="id", referencedColumnName="banco_id", nullable=false) | |
| 56 | + */ | |
| 57 | + protected $cuentaBancarias; | |
| 58 | + | |
| 59 | + public function __construct() | |
| 60 | + { | |
| 61 | + $this->cuentaBancarias = new ArrayCollection(); | |
| 62 | + } | |
| 63 | + | |
| 64 | + public function __sleep() | |
| 65 | + { | |
| 66 | + return array('id', 'descripcion', 'codigo'); | |
| 67 | + } | |
| 68 | + | |
| 69 | + /** | |
| 70 | + * Get id | |
| 71 | + * | |
| 72 | + * @return integer | |
| 73 | + */ | |
| 74 | + public function getId() | |
| 75 | + { | |
| 76 | + return $this->id; | |
| 77 | + } | |
| 78 | + | |
| 79 | + /** | |
| 80 | + * Set descripcion | |
| 81 | + * | |
| 82 | + * @param string $descripcion | |
| 83 | + * @return Banco | |
| 84 | + */ | |
| 85 | + public function setDescripcion($descripcion) | |
| 86 | + { | |
| 87 | + $this->descripcion = $descripcion; | |
| 88 | + | |
| 89 | + return $this; | |
| 90 | + } | |
| 91 | + | |
| 92 | + /** | |
| 93 | + * Get descripcion | |
| 94 | + * | |
| 95 | + * @return string | |
| 96 | + */ | |
| 97 | + public function getDescripcion() | |
| 98 | + { | |
| 99 | + return $this->descripcion; | |
| 100 | + } | |
| 101 | + | |
| 102 | + /** | |
| 103 | + * Set codigo | |
| 104 | + * | |
| 105 | + * @param string $codigo | |
| 106 | + * @return Banco | |
| 107 | + */ | |
| 108 | + public function setCodigo($codigo) | |
| 109 | + { | |
| 110 | + $this->codigo = $codigo; | |
| 111 | + | |
| 112 | + return $this; | |
| 113 | + } | |
| 114 | + | |
| 115 | + /** | |
| 116 | + * Get codigo | |
| 117 | + * | |
| 118 | + * @return string | |
| 119 | + */ | |
| 120 | + public function getCodigo() | |
| 121 | + { | |
| 122 | + return $this->codigo; | |
| 123 | + } | |
| 124 | + | |
| 125 | + /** | |
| 126 | + * Add cuentaBancarias | |
| 127 | + * | |
| 128 | + * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias | |
| 129 | + * @return Banco | |
| 130 | + */ | |
| 131 | + public function addCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias) | |
| 132 | + { | |
| 133 | + $this->cuentaBancarias[] = $cuentaBancarias; | |
| 134 | + | |
| 135 | + return $this; | |
| 136 | + } | |
| 137 | + | |
| 138 | + /** | |
| 139 | + * Remove cuentaBancarias | |
| 140 | + * | |
| 141 | + * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias | |
| 142 | + */ | |
| 143 | + public function removeCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias) | |
| 144 | + { | |
| 145 | + $this->cuentaBancarias->removeElement($cuentaBancarias); | |
| 146 | + } | |
| 147 | + | |
| 148 | + /** | |
| 149 | + * Get cuentaBancarias | |
| 150 | + * | |
| 151 | + * @return \Doctrine\Common\Collections\Collection | |
| 152 | + */ | |
| 153 | + public function getCuentaBancarias() | |
| 154 | + { | |
| 155 | + return $this->cuentaBancarias; | |
| 156 | + } | |
| 157 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/BancoRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * BancoRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class BancoRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/Candidato.php
| ... | ... | @@ -0,0 +1,783 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * UBV\SurUbvBundle\Entity\Candidato | |
| 9 | + * | |
| 10 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\CandidatoRepository") | |
| 11 | + * @ORM\Table(name="candidato", indexes={@ORM\Index(name="fk_candidato_aspirante_tipo_idx", columns={"aspirante_tipo_id"}), @ORM\Index(name="fk_candidato_aspirante_estatus_idx", columns={"aspirante_estatus_id"}), @ORM\Index(name="fk_candidato_documento_identidad_tipo_idx", columns={"documento_identidad_tipo_id"}), @ORM\Index(name="fk_candidato_genero_idx", columns={"genero_id"}), @ORM\Index(name="fk_candidato_estado_civil_idx", columns={"estado_civil_id"}), @ORM\Index(name="fk_candidato_telefono_codigo_area_idx", columns={"telefono_codigo_area_id"}), @ORM\Index(name="fk_candidato_estado_idx", columns={"estado_residencia_id"}), @ORM\Index(name="fk_candidato_etnia_idx", columns={"etnia_id"}), @ORM\Index(name="fk_candidato_programa_idx", columns={"programa_id"}), @ORM\Index(name="fk_candidato_aldea_idx", columns={"aldea_id"}), @ORM\Index(name="fk_candidato_convenio_idx", columns={"convenio_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_candidato_UNIQUE", columns={"id"})}) | |
| 12 | + */ | |
| 13 | +class Candidato | |
| 14 | +{ | |
| 15 | + /** | |
| 16 | + * @ORM\Id | |
| 17 | + * @ORM\Column(type="integer") | |
| 18 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 19 | + * @ORM\SequenceGenerator(sequenceName="candidato_id_seq", allocationSize=1, initialValue=1) | |
| 20 | + */ | |
| 21 | + protected $id; | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * @ORM\Column(type="string", length=45) | |
| 25 | + */ | |
| 26 | + protected $primer_nombre; | |
| 27 | + | |
| 28 | + /** | |
| 29 | + * @ORM\Column(type="string", length=45, nullable=true) | |
| 30 | + */ | |
| 31 | + protected $segundo_nombre; | |
| 32 | + | |
| 33 | + /** | |
| 34 | + * @ORM\Column(type="string", length=45) | |
| 35 | + */ | |
| 36 | + protected $primer_apellido; | |
| 37 | + | |
| 38 | + /** | |
| 39 | + * @ORM\Column(type="string", length=45, nullable=true) | |
| 40 | + */ | |
| 41 | + protected $segundo_apellido; | |
| 42 | + | |
| 43 | + /** | |
| 44 | + * @ORM\Column(type="string", length=45) | |
| 45 | + */ | |
| 46 | + protected $identificacion; | |
| 47 | + | |
| 48 | + /** | |
| 49 | + * @ORM\Column(type="date") | |
| 50 | + */ | |
| 51 | + protected $fecha_nacimiento; | |
| 52 | + | |
| 53 | + /** | |
| 54 | + * @ORM\Column(type="string", length=45) | |
| 55 | + */ | |
| 56 | + protected $telefono; | |
| 57 | + | |
| 58 | + /** | |
| 59 | + * @ORM\Column(type="string", length=45) | |
| 60 | + */ | |
| 61 | + protected $correo; | |
| 62 | + | |
| 63 | + /** | |
| 64 | + * @ORM\Column(type="string", length=45, nullable=true) | |
| 65 | + */ | |
| 66 | + protected $id_opsu; | |
| 67 | + | |
| 68 | + /** | |
| 69 | + * @ORM\Column(type="date", nullable=true) | |
| 70 | + */ | |
| 71 | + protected $ano_grado; | |
| 72 | + | |
| 73 | + /** | |
| 74 | + * @ORM\Column(type="boolean") | |
| 75 | + */ | |
| 76 | + protected $trabaja; | |
| 77 | + | |
| 78 | + /** | |
| 79 | + * @ORM\Column(type="string", length=45, nullable=true) | |
| 80 | + */ | |
| 81 | + protected $promedio_nota; | |
| 82 | + | |
| 83 | + /** | |
| 84 | + * @ORM\ManyToOne(targetEntity="AspiranteTipo", inversedBy="candidatos") | |
| 85 | + * @ORM\JoinColumn(name="aspirante_tipo_id", referencedColumnName="id", nullable=false) | |
| 86 | + */ | |
| 87 | + protected $aspiranteTipo; | |
| 88 | + | |
| 89 | + /** | |
| 90 | + * @ORM\ManyToOne(targetEntity="AspiranteEstatus", inversedBy="candidatos") | |
| 91 | + * @ORM\JoinColumn(name="aspirante_estatus_id", referencedColumnName="id", nullable=false) | |
| 92 | + */ | |
| 93 | + protected $aspiranteEstatus; | |
| 94 | + | |
| 95 | + /** | |
| 96 | + * @ORM\ManyToOne(targetEntity="DocumentoIdentidadTipo", inversedBy="candidatos") | |
| 97 | + * @ORM\JoinColumn(name="documento_identidad_tipo_id", referencedColumnName="id", nullable=false) | |
| 98 | + */ | |
| 99 | + protected $documentoIdentidadTipo; | |
| 100 | + | |
| 101 | + /** | |
| 102 | + * @ORM\ManyToOne(targetEntity="Genero", inversedBy="candidatos") | |
| 103 | + * @ORM\JoinColumn(name="genero_id", referencedColumnName="id", nullable=false) | |
| 104 | + */ | |
| 105 | + protected $genero; | |
| 106 | + | |
| 107 | + /** | |
| 108 | + * @ORM\ManyToOne(targetEntity="EstadoCivil", inversedBy="candidatos") | |
| 109 | + * @ORM\JoinColumn(name="estado_civil_id", referencedColumnName="id", nullable=false) | |
| 110 | + */ | |
| 111 | + protected $estadoCivil; | |
| 112 | + | |
| 113 | + /** | |
| 114 | + * @ORM\ManyToOne(targetEntity="TelefonoCodigoArea", inversedBy="candidatos") | |
| 115 | + * @ORM\JoinColumn(name="telefono_codigo_area_id", referencedColumnName="id", nullable=false) | |
| 116 | + */ | |
| 117 | + protected $telefonoCodigoArea; | |
| 118 | + | |
| 119 | + /** | |
| 120 | + * @ORM\ManyToOne(targetEntity="Estado", inversedBy="candidatos") | |
| 121 | + * @ORM\JoinColumn(name="estado_residencia_id", referencedColumnName="id") | |
| 122 | + */ | |
| 123 | + protected $estado; | |
| 124 | + | |
| 125 | + /** | |
| 126 | + * @ORM\ManyToOne(targetEntity="Etnia", inversedBy="candidatos") | |
| 127 | + * @ORM\JoinColumn(name="etnia_id", referencedColumnName="id") | |
| 128 | + */ | |
| 129 | + protected $etnia; | |
| 130 | + | |
| 131 | + /** | |
| 132 | + * @ORM\ManyToOne(targetEntity="Programa", inversedBy="candidatos") | |
| 133 | + * @ORM\JoinColumn(name="programa_id", referencedColumnName="id", nullable=false) | |
| 134 | + */ | |
| 135 | + protected $programa; | |
| 136 | + | |
| 137 | + /** | |
| 138 | + * @ORM\ManyToOne(targetEntity="Aldea", inversedBy="candidatos") | |
| 139 | + * @ORM\JoinColumn(name="aldea_id", referencedColumnName="id", nullable=false) | |
| 140 | + */ | |
| 141 | + protected $aldea; | |
| 142 | + | |
| 143 | + /** | |
| 144 | + * @ORM\ManyToOne(targetEntity="Convenio", inversedBy="candidatos") | |
| 145 | + * @ORM\JoinColumn(name="convenio_id", referencedColumnName="id") | |
| 146 | + */ | |
| 147 | + protected $convenio; | |
| 148 | + | |
| 149 | + /** | |
| 150 | + * @ORM\ManyToOne(targetEntity="CorreoTipo", inversedBy="candidatos") | |
| 151 | + * @ORM\JoinColumn(name="correo_tipo_id", referencedColumnName="id", nullable=false) | |
| 152 | + */ | |
| 153 | + protected $correoTipo; | |
| 154 | + | |
| 155 | + /** | |
| 156 | + * @ORM\ManyToOne(targetEntity="Discapacidad", inversedBy="candidatos") | |
| 157 | + * @ORM\JoinColumn(name="discapacidad_id", referencedColumnName="id", nullable=false) | |
| 158 | + */ | |
| 159 | + protected $discapacidad; | |
| 160 | + | |
| 161 | + /** | |
| 162 | + * @ORM\ManyToOne(targetEntity="PeriodoAcademico", inversedBy="candidatos") | |
| 163 | + * @ORM\JoinColumn(name="periodo_academico_id", referencedColumnName="id", nullable=false) | |
| 164 | + */ | |
| 165 | + protected $periodoAcademico; | |
| 166 | + | |
| 167 | + public function __construct() | |
| 168 | + { | |
| 169 | + } | |
| 170 | + | |
| 171 | + public function __sleep() | |
| 172 | + { | |
| 173 | + return array('id', 'primer_nombre', 'segundo_nombre', 'primer_apellido', 'segundo_apellido', 'identificacion', 'aspirante_tipo_id', 'aspirante_estatus_id', 'documento_identidad_tipo_id', 'genero_id', 'estado_civil_id', 'fecha_nacimiento', 'telefono', 'telefono_codigo_area_id', 'correo', 'estado_residencia_id', 'etnia_id', 'id_opsu', 'ano_grado', 'trabaja', 'promedio_nota', 'programa_id', 'periodo_asignado', 'aldea_id', 'convenio_id'); | |
| 174 | + } | |
| 175 | + | |
| 176 | + /** | |
| 177 | + * Get id | |
| 178 | + * | |
| 179 | + * @return integer | |
| 180 | + */ | |
| 181 | + public function getId() | |
| 182 | + { | |
| 183 | + return $this->id; | |
| 184 | + } | |
| 185 | + | |
| 186 | + /** | |
| 187 | + * Set primer_nombre | |
| 188 | + * | |
| 189 | + * @param string $primerNombre | |
| 190 | + * @return Candidato | |
| 191 | + */ | |
| 192 | + public function setPrimerNombre($primerNombre) | |
| 193 | + { | |
| 194 | + $this->primer_nombre = $primerNombre; | |
| 195 | + | |
| 196 | + return $this; | |
| 197 | + } | |
| 198 | + | |
| 199 | + /** | |
| 200 | + * Get primer_nombre | |
| 201 | + * | |
| 202 | + * @return string | |
| 203 | + */ | |
| 204 | + public function getPrimerNombre() | |
| 205 | + { | |
| 206 | + return $this->primer_nombre; | |
| 207 | + } | |
| 208 | + | |
| 209 | + /** | |
| 210 | + * Set segundo_nombre | |
| 211 | + * | |
| 212 | + * @param string $segundoNombre | |
| 213 | + * @return Candidato | |
| 214 | + */ | |
| 215 | + public function setSegundoNombre($segundoNombre) | |
| 216 | + { | |
| 217 | + $this->segundo_nombre = $segundoNombre; | |
| 218 | + | |
| 219 | + return $this; | |
| 220 | + } | |
| 221 | + | |
| 222 | + /** | |
| 223 | + * Get segundo_nombre | |
| 224 | + * | |
| 225 | + * @return string | |
| 226 | + */ | |
| 227 | + public function getSegundoNombre() | |
| 228 | + { | |
| 229 | + return $this->segundo_nombre; | |
| 230 | + } | |
| 231 | + | |
| 232 | + /** | |
| 233 | + * Set primer_apellido | |
| 234 | + * | |
| 235 | + * @param string $primerApellido | |
| 236 | + * @return Candidato | |
| 237 | + */ | |
| 238 | + public function setPrimerApellido($primerApellido) | |
| 239 | + { | |
| 240 | + $this->primer_apellido = $primerApellido; | |
| 241 | + | |
| 242 | + return $this; | |
| 243 | + } | |
| 244 | + | |
| 245 | + /** | |
| 246 | + * Get primer_apellido | |
| 247 | + * | |
| 248 | + * @return string | |
| 249 | + */ | |
| 250 | + public function getPrimerApellido() | |
| 251 | + { | |
| 252 | + return $this->primer_apellido; | |
| 253 | + } | |
| 254 | + | |
| 255 | + /** | |
| 256 | + * Set segundo_apellido | |
| 257 | + * | |
| 258 | + * @param string $segundoApellido | |
| 259 | + * @return Candidato | |
| 260 | + */ | |
| 261 | + public function setSegundoApellido($segundoApellido) | |
| 262 | + { | |
| 263 | + $this->segundo_apellido = $segundoApellido; | |
| 264 | + | |
| 265 | + return $this; | |
| 266 | + } | |
| 267 | + | |
| 268 | + /** | |
| 269 | + * Get segundo_apellido | |
| 270 | + * | |
| 271 | + * @return string | |
| 272 | + */ | |
| 273 | + public function getSegundoApellido() | |
| 274 | + { | |
| 275 | + return $this->segundo_apellido; | |
| 276 | + } | |
| 277 | + | |
| 278 | + /** | |
| 279 | + * Set identificacion | |
| 280 | + * | |
| 281 | + * @param string $identificacion | |
| 282 | + * @return Candidato | |
| 283 | + */ | |
| 284 | + public function setIdentificacion($identificacion) | |
| 285 | + { | |
| 286 | + $this->identificacion = $identificacion; | |
| 287 | + | |
| 288 | + return $this; | |
| 289 | + } | |
| 290 | + | |
| 291 | + /** | |
| 292 | + * Get identificacion | |
| 293 | + * | |
| 294 | + * @return string | |
| 295 | + */ | |
| 296 | + public function getIdentificacion() | |
| 297 | + { | |
| 298 | + return $this->identificacion; | |
| 299 | + } | |
| 300 | + | |
| 301 | + /** | |
| 302 | + * Set fecha_nacimiento | |
| 303 | + * | |
| 304 | + * @param \DateTime $fechaNacimiento | |
| 305 | + * @return Candidato | |
| 306 | + */ | |
| 307 | + public function setFechaNacimiento($fechaNacimiento) | |
| 308 | + { | |
| 309 | + $this->fecha_nacimiento = $fechaNacimiento; | |
| 310 | + | |
| 311 | + return $this; | |
| 312 | + } | |
| 313 | + | |
| 314 | + /** | |
| 315 | + * Get fecha_nacimiento | |
| 316 | + * | |
| 317 | + * @return \DateTime | |
| 318 | + */ | |
| 319 | + public function getFechaNacimiento() | |
| 320 | + { | |
| 321 | + return $this->fecha_nacimiento; | |
| 322 | + } | |
| 323 | + | |
| 324 | + /** | |
| 325 | + * Set telefono | |
| 326 | + * | |
| 327 | + * @param string $telefono | |
| 328 | + * @return Candidato | |
| 329 | + */ | |
| 330 | + public function setTelefono($telefono) | |
| 331 | + { | |
| 332 | + $this->telefono = $telefono; | |
| 333 | + | |
| 334 | + return $this; | |
| 335 | + } | |
| 336 | + | |
| 337 | + /** | |
| 338 | + * Get telefono | |
| 339 | + * | |
| 340 | + * @return string | |
| 341 | + */ | |
| 342 | + public function getTelefono() | |
| 343 | + { | |
| 344 | + return $this->telefono; | |
| 345 | + } | |
| 346 | + | |
| 347 | + /** | |
| 348 | + * Set correo | |
| 349 | + * | |
| 350 | + * @param string $correo | |
| 351 | + * @return Candidato | |
| 352 | + */ | |
| 353 | + public function setCorreo($correo) | |
| 354 | + { | |
| 355 | + $this->correo = $correo; | |
| 356 | + | |
| 357 | + return $this; | |
| 358 | + } | |
| 359 | + | |
| 360 | + /** | |
| 361 | + * Get correo | |
| 362 | + * | |
| 363 | + * @return string | |
| 364 | + */ | |
| 365 | + public function getCorreo() | |
| 366 | + { | |
| 367 | + return $this->correo; | |
| 368 | + } | |
| 369 | + | |
| 370 | + /** | |
| 371 | + * Set id_opsu | |
| 372 | + * | |
| 373 | + * @param string $idOpsu | |
| 374 | + * @return Candidato | |
| 375 | + */ | |
| 376 | + public function setIdOpsu($idOpsu) | |
| 377 | + { | |
| 378 | + $this->id_opsu = $idOpsu; | |
| 379 | + | |
| 380 | + return $this; | |
| 381 | + } | |
| 382 | + | |
| 383 | + /** | |
| 384 | + * Get id_opsu | |
| 385 | + * | |
| 386 | + * @return string | |
| 387 | + */ | |
| 388 | + public function getIdOpsu() | |
| 389 | + { | |
| 390 | + return $this->id_opsu; | |
| 391 | + } | |
| 392 | + | |
| 393 | + /** | |
| 394 | + * Set ano_grado | |
| 395 | + * | |
| 396 | + * @param \DateTime $anoGrado | |
| 397 | + * @return Candidato | |
| 398 | + */ | |
| 399 | + public function setAnoGrado($anoGrado) | |
| 400 | + { | |
| 401 | + $this->ano_grado = $anoGrado; | |
| 402 | + | |
| 403 | + return $this; | |
| 404 | + } | |
| 405 | + | |
| 406 | + /** | |
| 407 | + * Get ano_grado | |
| 408 | + * | |
| 409 | + * @return \DateTime | |
| 410 | + */ | |
| 411 | + public function getAnoGrado() | |
| 412 | + { | |
| 413 | + return $this->ano_grado; | |
| 414 | + } | |
| 415 | + | |
| 416 | + /** | |
| 417 | + * Set trabaja | |
| 418 | + * | |
| 419 | + * @param boolean $trabaja | |
| 420 | + * @return Candidato | |
| 421 | + */ | |
| 422 | + public function setTrabaja($trabaja) | |
| 423 | + { | |
| 424 | + $this->trabaja = $trabaja; | |
| 425 | + | |
| 426 | + return $this; | |
| 427 | + } | |
| 428 | + | |
| 429 | + /** | |
| 430 | + * Get trabaja | |
| 431 | + * | |
| 432 | + * @return boolean | |
| 433 | + */ | |
| 434 | + public function getTrabaja() | |
| 435 | + { | |
| 436 | + return $this->trabaja; | |
| 437 | + } | |
| 438 | + | |
| 439 | + /** | |
| 440 | + * Set promedio_nota | |
| 441 | + * | |
| 442 | + * @param string $promedioNota | |
| 443 | + * @return Candidato | |
| 444 | + */ | |
| 445 | + public function setPromedioNota($promedioNota) | |
| 446 | + { | |
| 447 | + $this->promedio_nota = $promedioNota; | |
| 448 | + | |
| 449 | + return $this; | |
| 450 | + } | |
| 451 | + | |
| 452 | + /** | |
| 453 | + * Get promedio_nota | |
| 454 | + * | |
| 455 | + * @return string | |
| 456 | + */ | |
| 457 | + public function getPromedioNota() | |
| 458 | + { | |
| 459 | + return $this->promedio_nota; | |
| 460 | + } | |
| 461 | + | |
| 462 | + /** | |
| 463 | + * Set aspiranteTipo | |
| 464 | + * | |
| 465 | + * @param \UBV\SurUbvBundle\Entity\AspiranteTipo $aspiranteTipo | |
| 466 | + * @return Candidato | |
| 467 | + */ | |
| 468 | + public function setAspiranteTipo(\UBV\SurUbvBundle\Entity\AspiranteTipo $aspiranteTipo) | |
| 469 | + { | |
| 470 | + $this->aspiranteTipo = $aspiranteTipo; | |
| 471 | + | |
| 472 | + return $this; | |
| 473 | + } | |
| 474 | + | |
| 475 | + /** | |
| 476 | + * Get aspiranteTipo | |
| 477 | + * | |
| 478 | + * @return \UBV\SurUbvBundle\Entity\AspiranteTipo | |
| 479 | + */ | |
| 480 | + public function getAspiranteTipo() | |
| 481 | + { | |
| 482 | + return $this->aspiranteTipo; | |
| 483 | + } | |
| 484 | + | |
| 485 | + /** | |
| 486 | + * Set aspiranteEstatus | |
| 487 | + * | |
| 488 | + * @param \UBV\SurUbvBundle\Entity\AspiranteEstatus $aspiranteEstatus | |
| 489 | + * @return Candidato | |
| 490 | + */ | |
| 491 | + public function setAspiranteEstatus(\UBV\SurUbvBundle\Entity\AspiranteEstatus $aspiranteEstatus) | |
| 492 | + { | |
| 493 | + $this->aspiranteEstatus = $aspiranteEstatus; | |
| 494 | + | |
| 495 | + return $this; | |
| 496 | + } | |
| 497 | + | |
| 498 | + /** | |
| 499 | + * Get aspiranteEstatus | |
| 500 | + * | |
| 501 | + * @return \UBV\SurUbvBundle\Entity\AspiranteEstatus | |
| 502 | + */ | |
| 503 | + public function getAspiranteEstatus() | |
| 504 | + { | |
| 505 | + return $this->aspiranteEstatus; | |
| 506 | + } | |
| 507 | + | |
| 508 | + /** | |
| 509 | + * Set documentoIdentidadTipo | |
| 510 | + * | |
| 511 | + * @param \UBV\SurUbvBundle\Entity\DocumentoIdentidadTipo $documentoIdentidadTipo | |
| 512 | + * @return Candidato | |
| 513 | + */ | |
| 514 | + public function setDocumentoIdentidadTipo(\UBV\SurUbvBundle\Entity\DocumentoIdentidadTipo $documentoIdentidadTipo) | |
| 515 | + { | |
| 516 | + $this->documentoIdentidadTipo = $documentoIdentidadTipo; | |
| 517 | + | |
| 518 | + return $this; | |
| 519 | + } | |
| 520 | + | |
| 521 | + /** | |
| 522 | + * Get documentoIdentidadTipo | |
| 523 | + * | |
| 524 | + * @return \UBV\SurUbvBundle\Entity\DocumentoIdentidadTipo | |
| 525 | + */ | |
| 526 | + public function getDocumentoIdentidadTipo() | |
| 527 | + { | |
| 528 | + return $this->documentoIdentidadTipo; | |
| 529 | + } | |
| 530 | + | |
| 531 | + /** | |
| 532 | + * Set genero | |
| 533 | + * | |
| 534 | + * @param \UBV\SurUbvBundle\Entity\Genero $genero | |
| 535 | + * @return Candidato | |
| 536 | + */ | |
| 537 | + public function setGenero(\UBV\SurUbvBundle\Entity\Genero $genero) | |
| 538 | + { | |
| 539 | + $this->genero = $genero; | |
| 540 | + | |
| 541 | + return $this; | |
| 542 | + } | |
| 543 | + | |
| 544 | + /** | |
| 545 | + * Get genero | |
| 546 | + * | |
| 547 | + * @return \UBV\SurUbvBundle\Entity\Genero | |
| 548 | + */ | |
| 549 | + public function getGenero() | |
| 550 | + { | |
| 551 | + return $this->genero; | |
| 552 | + } | |
| 553 | + | |
| 554 | + /** | |
| 555 | + * Set estadoCivil | |
| 556 | + * | |
| 557 | + * @param \UBV\SurUbvBundle\Entity\EstadoCivil $estadoCivil | |
| 558 | + * @return Candidato | |
| 559 | + */ | |
| 560 | + public function setEstadoCivil(\UBV\SurUbvBundle\Entity\EstadoCivil $estadoCivil) | |
| 561 | + { | |
| 562 | + $this->estadoCivil = $estadoCivil; | |
| 563 | + | |
| 564 | + return $this; | |
| 565 | + } | |
| 566 | + | |
| 567 | + /** | |
| 568 | + * Get estadoCivil | |
| 569 | + * | |
| 570 | + * @return \UBV\SurUbvBundle\Entity\EstadoCivil | |
| 571 | + */ | |
| 572 | + public function getEstadoCivil() | |
| 573 | + { | |
| 574 | + return $this->estadoCivil; | |
| 575 | + } | |
| 576 | + | |
| 577 | + /** | |
| 578 | + * Set telefonoCodigoArea | |
| 579 | + * | |
| 580 | + * @param \UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea | |
| 581 | + * @return Candidato | |
| 582 | + */ | |
| 583 | + public function setTelefonoCodigoArea(\UBV\SurUbvBundle\Entity\TelefonoCodigoArea $telefonoCodigoArea) | |
| 584 | + { | |
| 585 | + $this->telefonoCodigoArea = $telefonoCodigoArea; | |
| 586 | + | |
| 587 | + return $this; | |
| 588 | + } | |
| 589 | + | |
| 590 | + /** | |
| 591 | + * Get telefonoCodigoArea | |
| 592 | + * | |
| 593 | + * @return \UBV\SurUbvBundle\Entity\TelefonoCodigoArea | |
| 594 | + */ | |
| 595 | + public function getTelefonoCodigoArea() | |
| 596 | + { | |
| 597 | + return $this->telefonoCodigoArea; | |
| 598 | + } | |
| 599 | + | |
| 600 | + /** | |
| 601 | + * Set estado | |
| 602 | + * | |
| 603 | + * @param \UBV\SurUbvBundle\Entity\Estado $estado | |
| 604 | + * @return Candidato | |
| 605 | + */ | |
| 606 | + public function setEstado(\UBV\SurUbvBundle\Entity\Estado $estado = null) | |
| 607 | + { | |
| 608 | + $this->estado = $estado; | |
| 609 | + | |
| 610 | + return $this; | |
| 611 | + } | |
| 612 | + | |
| 613 | + /** | |
| 614 | + * Get estado | |
| 615 | + * | |
| 616 | + * @return \UBV\SurUbvBundle\Entity\Estado | |
| 617 | + */ | |
| 618 | + public function getEstado() | |
| 619 | + { | |
| 620 | + return $this->estado; | |
| 621 | + } | |
| 622 | + | |
| 623 | + /** | |
| 624 | + * Set etnia | |
| 625 | + * | |
| 626 | + * @param \UBV\SurUbvBundle\Entity\Etnia $etnia | |
| 627 | + * @return Candidato | |
| 628 | + */ | |
| 629 | + public function setEtnia(\UBV\SurUbvBundle\Entity\Etnia $etnia = null) | |
| 630 | + { | |
| 631 | + $this->etnia = $etnia; | |
| 632 | + | |
| 633 | + return $this; | |
| 634 | + } | |
| 635 | + | |
| 636 | + /** | |
| 637 | + * Get etnia | |
| 638 | + * | |
| 639 | + * @return \UBV\SurUbvBundle\Entity\Etnia | |
| 640 | + */ | |
| 641 | + public function getEtnia() | |
| 642 | + { | |
| 643 | + return $this->etnia; | |
| 644 | + } | |
| 645 | + | |
| 646 | + /** | |
| 647 | + * Set programa | |
| 648 | + * | |
| 649 | + * @param \UBV\SurUbvBundle\Entity\Programa $programa | |
| 650 | + * @return Candidato | |
| 651 | + */ | |
| 652 | + public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) | |
| 653 | + { | |
| 654 | + $this->programa = $programa; | |
| 655 | + | |
| 656 | + return $this; | |
| 657 | + } | |
| 658 | + | |
| 659 | + /** | |
| 660 | + * Get programa | |
| 661 | + * | |
| 662 | + * @return \UBV\SurUbvBundle\Entity\Programa | |
| 663 | + */ | |
| 664 | + public function getPrograma() | |
| 665 | + { | |
| 666 | + return $this->programa; | |
| 667 | + } | |
| 668 | + | |
| 669 | + /** | |
| 670 | + * Set aldea | |
| 671 | + * | |
| 672 | + * @param \UBV\SurUbvBundle\Entity\Aldea $aldea | |
| 673 | + * @return Candidato | |
| 674 | + */ | |
| 675 | + public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) | |
| 676 | + { | |
| 677 | + $this->aldea = $aldea; | |
| 678 | + | |
| 679 | + return $this; | |
| 680 | + } | |
| 681 | + | |
| 682 | + /** | |
| 683 | + * Get aldea | |
| 684 | + * | |
| 685 | + * @return \UBV\SurUbvBundle\Entity\Aldea | |
| 686 | + */ | |
| 687 | + public function getAldea() | |
| 688 | + { | |
| 689 | + return $this->aldea; | |
| 690 | + } | |
| 691 | + | |
| 692 | + /** | |
| 693 | + * Set convenio | |
| 694 | + * | |
| 695 | + * @param \UBV\SurUbvBundle\Entity\Convenio $convenio | |
| 696 | + * @return Candidato | |
| 697 | + */ | |
| 698 | + public function setConvenio(\UBV\SurUbvBundle\Entity\Convenio $convenio = null) | |
| 699 | + { | |
| 700 | + $this->convenio = $convenio; | |
| 701 | + | |
| 702 | + return $this; | |
| 703 | + } | |
| 704 | + | |
| 705 | + /** | |
| 706 | + * Get convenio | |
| 707 | + * | |
| 708 | + * @return \UBV\SurUbvBundle\Entity\Convenio | |
| 709 | + */ | |
| 710 | + public function getConvenio() | |
| 711 | + { | |
| 712 | + return $this->convenio; | |
| 713 | + } | |
| 714 | + | |
| 715 | + /** | |
| 716 | + * Set correoTipo | |
| 717 | + * | |
| 718 | + * @param \UBV\SurUbvBundle\Entity\CorreoTipo $correoTipo | |
| 719 | + * @return Candidato | |
| 720 | + */ | |
| 721 | + public function setCorreoTipo(\UBV\SurUbvBundle\Entity\CorreoTipo $correoTipo) | |
| 722 | + { | |
| 723 | + $this->correoTipo = $correoTipo; | |
| 724 | + | |
| 725 | + return $this; | |
| 726 | + } | |
| 727 | + | |
| 728 | + /** | |
| 729 | + * Get correoTipo | |
| 730 | + * | |
| 731 | + * @return \UBV\SurUbvBundle\Entity\CorreoTipo | |
| 732 | + */ | |
| 733 | + public function getCorreoTipo() | |
| 734 | + { | |
| 735 | + return $this->correoTipo; | |
| 736 | + } | |
| 737 | + | |
| 738 | + /** | |
| 739 | + * Set discapacidad | |
| 740 | + * | |
| 741 | + * @param \UBV\SurUbvBundle\Entity\Discapacidad $discapacidad | |
| 742 | + * @return Candidato | |
| 743 | + */ | |
| 744 | + public function setDiscapacidad(\UBV\SurUbvBundle\Entity\Discapacidad $discapacidad) | |
| 745 | + { | |
| 746 | + $this->discapacidad = $discapacidad; | |
| 747 | + | |
| 748 | + return $this; | |
| 749 | + } | |
| 750 | + | |
| 751 | + /** | |
| 752 | + * Get discapacidad | |
| 753 | + * | |
| 754 | + * @return \UBV\SurUbvBundle\Entity\Discapacidad | |
| 755 | + */ | |
| 756 | + public function getDiscapacidad() | |
| 757 | + { | |
| 758 | + return $this->discapacidad; | |
| 759 | + } | |
| 760 | + | |
| 761 | + /** | |
| 762 | + * Set periodoAcademico | |
| 763 | + * | |
| 764 | + * @param \UBV\SurUbvBundle\Entity\PeriodoAcademico $periodoAcademico | |
| 765 | + * @return Candidato | |
| 766 | + */ | |
| 767 | + public function setPeriodoAcademico(\UBV\SurUbvBundle\Entity\PeriodoAcademico $periodoAcademico) | |
| 768 | + { | |
| 769 | + $this->periodoAcademico = $periodoAcademico; | |
| 770 | + | |
| 771 | + return $this; | |
| 772 | + } | |
| 773 | + | |
| 774 | + /** | |
| 775 | + * Get periodoAcademico | |
| 776 | + * | |
| 777 | + * @return \UBV\SurUbvBundle\Entity\PeriodoAcademico | |
| 778 | + */ | |
| 779 | + public function getPeriodoAcademico() | |
| 780 | + { | |
| 781 | + return $this->periodoAcademico; | |
| 782 | + } | |
| 783 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/CandidatoRepository.php
| ... | ... | @@ -0,0 +1,242 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +use Doctrine\ORM\Query\Expr\Join; | |
| 8 | +use Doctrine\ORM\Query; | |
| 9 | + | |
| 10 | +/** | |
| 11 | + * CandidatoRepository | |
| 12 | + * | |
| 13 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 14 | + * repository methods below. | |
| 15 | + */ | |
| 16 | +class CandidatoRepository extends EntityRepository | |
| 17 | +{ | |
| 18 | + public function findDatosParaCandidatos($candidato) | |
| 19 | + { | |
| 20 | + $datosBusqueda = $this->asignarValoresDeBusqueda($candidato); | |
| 21 | + $arregloCandidato = $this->findDatosCandidatos($datosBusqueda,$candidato); | |
| 22 | + //die(dump($arregloCandidato)); | |
| 23 | + return $arregloCandidato; | |
| 24 | + } | |
| 25 | + | |
| 26 | + private function findDatosCandidatos($datosBusqueda,$candidato){ | |
| 27 | + $em = $this->getEntityManager(); | |
| 28 | + | |
| 29 | + $programaAsignadoConsulta = $em->createQueryBuilder()->select('programa','programaTipo','aldea','aldeaPrograma','ambiente','parroquia','municipio','estado') | |
| 30 | + ->from('UBVSurUbvBundle:AldeaPrograma', 'aldeaPrograma') | |
| 31 | + ->LeftJoin('aldeaPrograma.aldea', 'aldea', 'aldeaPrograma.aldea_id = aldea.id') | |
| 32 | + ->LeftJoin('aldeaPrograma.programa', 'programa', 'aldeaPrograma.programa_id = programa.id') | |
| 33 | + ->LeftJoin('programa.programaTipo', 'programaTipo', 'programaTipo.programa_id = programa.id') | |
| 34 | + ->LeftJoin('aldea.ambiente', 'ambiente', 'aldea.ambiente_id = ambiente.id') | |
| 35 | + ->LeftJoin('ambiente.parroquia', 'parroquia', 'ambiente.parroquia_id = parroquia.id') | |
| 36 | + ->LeftJoin('parroquia.municipio', 'municipio', 'parroquia.municipio_id = municipio.id') | |
| 37 | + ->LeftJoin('municipio.estado', 'estado', 'municipio.estado_id = estado.id') | |
| 38 | + ->where('aldeaPrograma.codigo_opsu= :codigoOpsuPrograma') | |
| 39 | + ->setParameter('codigoOpsuPrograma', '123') | |
| 40 | + ->getQuery() | |
| 41 | + ->getOneOrNullResult(); | |
| 42 | + | |
| 43 | + $etniaConsulta = $em->createQueryBuilder()->select('etnia') | |
| 44 | + ->from('UBVSurUbvBundle:Etnia', 'etnia') | |
| 45 | + ->where('etnia.descripcion= :etnia') | |
| 46 | + ->setParameter('etnia', $datosBusqueda["etnia"]) | |
| 47 | + ->getQuery() | |
| 48 | + ->getOneOrNullResult(); | |
| 49 | + | |
| 50 | + $discapacidadConsulta = $em->createQueryBuilder()->select('discapacidad') | |
| 51 | + ->from('UBVSurUbvBundle:Discapacidad', 'discapacidad') | |
| 52 | + ->where('discapacidad.descripcion= :discapacidad') | |
| 53 | + ->setParameter('discapacidad', $datosBusqueda["discapacidad"]) | |
| 54 | + ->getQuery() | |
| 55 | + ->getOneOrNullResult(); | |
| 56 | + | |
| 57 | + $periodoConsulta = $em->createQueryBuilder()->select('periodo') | |
| 58 | + ->from('UBVSurUbvBundle:PeriodoAcademico', 'periodo') | |
| 59 | + ->where('periodo.descripcion= :periodo') | |
| 60 | + ->setParameter('periodo', $datosBusqueda["periodo"]) | |
| 61 | + ->getQuery() | |
| 62 | + ->getOneOrNullResult(); | |
| 63 | + | |
| 64 | + $estadoCivilConsulta = $em->createQueryBuilder()->select('estadoCivil') | |
| 65 | + ->from('UBVSurUbvBundle:EstadoCivil', 'estadoCivil') | |
| 66 | + ->where('estadoCivil.codigo= :estadoCivil') | |
| 67 | + ->setParameter('estadoCivil', $datosBusqueda["estadoCivil"]) | |
| 68 | + ->getQuery() | |
| 69 | + ->getOneOrNullResult(); | |
| 70 | + | |
| 71 | + $generoConsulta = $em->createQueryBuilder()->select('genero') | |
| 72 | + ->from('UBVSurUbvBundle:Genero', 'genero') | |
| 73 | + ->where('genero.codigo= :genero') | |
| 74 | + ->setParameter('genero', $datosBusqueda["genero"]) | |
| 75 | + ->getQuery() | |
| 76 | + ->getOneOrNullResult(); | |
| 77 | + | |
| 78 | + $documentoIdentidadTipoConsulta = $em->createQueryBuilder()->select('documentoIdentidadTipo') | |
| 79 | + ->from('UBVSurUbvBundle:DocumentoIdentidadTipo', 'documentoIdentidadTipo') | |
| 80 | + ->where('documentoIdentidadTipo.codigo= :documentoIdentidadTipo') | |
| 81 | + ->setParameter('documentoIdentidadTipo', $datosBusqueda["documentoIdentidadTipo"]) | |
| 82 | + ->getQuery() | |
| 83 | + ->getOneOrNullResult(); | |
| 84 | + | |
| 85 | + $telefonoCodigoAreaConsulta = $em->createQueryBuilder()->select('telefonoCodigoArea') | |
| 86 | + ->from('UBVSurUbvBundle:TelefonoCodigoArea', 'telefonoCodigoArea') | |
| 87 | + ->where('telefonoCodigoArea.descripcion LIKE :telefonoCodigoArea') | |
| 88 | + ->setParameter('telefonoCodigoArea', '%'.$datosBusqueda["codigoArea"].'%') | |
| 89 | + ->getQuery() | |
| 90 | + ->getOneOrNullResult(); | |
| 91 | + | |
| 92 | + $correoTipoConsulta = $em->createQueryBuilder()->select('correoTipo') | |
| 93 | + ->from('UBVSurUbvBundle:CorreoTipo', 'correoTipo') | |
| 94 | + ->where('correoTipo.descripcion LIKE :correoTipo') | |
| 95 | + ->setParameter('correoTipo', '%Personal%') | |
| 96 | + ->getQuery() | |
| 97 | + ->getOneOrNullResult(); | |
| 98 | + | |
| 99 | + $aspiranteEstatusConsulta = $em->createQueryBuilder()->select('aspiranteEstatus') | |
| 100 | + ->from('UBVSurUbvBundle:AspiranteEstatus', 'aspiranteEstatus') | |
| 101 | + ->where('aspiranteEstatus.descripcion LIKE :aspiranteEstatus') | |
| 102 | + ->setParameter('aspiranteEstatus', 'No Inscrito') | |
| 103 | + ->getQuery() | |
| 104 | + ->getOneOrNullResult(); | |
| 105 | + | |
| 106 | + $arregloCosultas = array("AldeaPrograma"=>$programaAsignadoConsulta,"Etnia"=>$etniaConsulta,"Discapacidad"=>$discapacidadConsulta, | |
| 107 | + "PeriodoAcademico"=>$periodoConsulta,"EstadoCivil"=>$estadoCivilConsulta,"Genero"=>$generoConsulta, | |
| 108 | + "DocumentoIdentidadTipo"=>$documentoIdentidadTipoConsulta,"TelefonoCodigoArea"=>$telefonoCodigoAreaConsulta, | |
| 109 | + "CorreoTipo"=>$correoTipoConsulta,"AspiranteEstatus"=>$aspiranteEstatusConsulta, | |
| 110 | + ); | |
| 111 | + //die(dump($arregloCosultas)); | |
| 112 | + $arregloCandidato = $this->ordenarArregloCandidato($arregloCosultas, $candidato); | |
| 113 | + return $arregloCandidato; | |
| 114 | + } | |
| 115 | + | |
| 116 | + public function findCandidatoByIdenProg($candidato){ | |
| 117 | + $em = $this->getEntityManager(); | |
| 118 | + //die(dump($candidato["programaAsig"]->getProgramaTipo()->getId())); | |
| 119 | + $existeCandidato = $em->createQueryBuilder()->select('candidato','programa') | |
| 120 | + ->from('UBVSurUbvBundle:Candidato', 'candidato') | |
| 121 | + ->LeftJoin('candidato.programa', 'programa', 'candidato.programa_id = programa.id') | |
| 122 | + ->LeftJoin('programa.programaTipo', 'programaTipo', 'programa.programa_tipo_id = programaTipo.id') | |
| 123 | + ->where('candidato.identificacion= :identificacion') | |
| 124 | + ->Andwhere('programaTipo.id= :programaTipoId') | |
| 125 | + ->setParameter('identificacion', $candidato["identificacion"]) | |
| 126 | + ->setParameter('programaTipoId', $candidato["programaAsig"]->getProgramaTipo()->getId()) | |
| 127 | + ->getQuery() | |
| 128 | + ->getOneOrNullResult(); | |
| 129 | + //die(dump($existeCandidato)); | |
| 130 | + if (is_null($existeCandidato)){ | |
| 131 | + return false; | |
| 132 | + }else{ | |
| 133 | + return true; | |
| 134 | + } | |
| 135 | + | |
| 136 | + } | |
| 137 | + | |
| 138 | + | |
| 139 | + private function asignarValoresDeBusqueda($candidato){ | |
| 140 | + foreach($candidato as $clave => $valor){ | |
| 141 | + if($clave == "codPrograma"){ | |
| 142 | + $codigoOpsuPrograma = $valor; | |
| 143 | + } | |
| 144 | + elseif($clave == "nacionalidad"){ | |
| 145 | + $documentoIdentidadTipo = $valor; | |
| 146 | + } | |
| 147 | + elseif($clave == "genero"){ | |
| 148 | + $genero = $valor; | |
| 149 | + } | |
| 150 | + elseif($clave == "estadoCivil"){ | |
| 151 | + $estadoCivil = $valor; | |
| 152 | + } | |
| 153 | + elseif($clave == "telefono"){ | |
| 154 | + $codigoArea = substr($valor, 0,3); | |
| 155 | + $telefono = substr($valor,3); | |
| 156 | + } | |
| 157 | + elseif($clave == "discapacidad"){ | |
| 158 | + $discapacidad = $valor; | |
| 159 | + } | |
| 160 | + elseif($clave == "trabaja"){ | |
| 161 | + if($valor === 'S'){ | |
| 162 | + $trabaja=true; | |
| 163 | + }else{ | |
| 164 | + $trabaja=false; | |
| 165 | + } | |
| 166 | + } | |
| 167 | + elseif($clave == "etnia"){ | |
| 168 | + $etnia = $valor; | |
| 169 | + } | |
| 170 | + elseif($clave == "periodoAsig"){ | |
| 171 | + $periodoAsignado = explode('-', $valor); | |
| 172 | + $periodo = $periodoAsignado[1].'-'.$periodoAsignado[0]; | |
| 173 | + } | |
| 174 | + | |
| 175 | + } | |
| 176 | + | |
| 177 | + return array("codPrograma"=>$codigoOpsuPrograma,"documentoIdentidadTipo"=>$documentoIdentidadTipo,"genero"=>$genero, | |
| 178 | + "estadoCivil"=>$estadoCivil,"codigoArea"=>$codigoArea,"telefono"=>$telefono, | |
| 179 | + "discapacidad"=>$discapacidad,"etnia"=>$etnia,"periodo"=>$periodo,"trabaja"=>$trabaja); | |
| 180 | + } | |
| 181 | + | |
| 182 | + private function ordenarArregloCandidato($arregloConsultas,$candidato){ | |
| 183 | + //die(dump((array("arregloConsultas"=>$arregloConsultas,"candidato"=>$candidato)))); | |
| 184 | + if(count($arregloConsultas) !== 0){ | |
| 185 | + foreach($candidato as $clave => $valor){ | |
| 186 | + if($clave == "nacionalidad"){ | |
| 187 | + $arrayTemp[$clave] = $arregloConsultas["DocumentoIdentidadTipo"]; | |
| 188 | + } | |
| 189 | + elseif($clave == "genero"){ | |
| 190 | + $arrayTemp[$clave] = $arregloConsultas["Genero"]; | |
| 191 | + } | |
| 192 | + elseif($clave == "estadoCivil"){ | |
| 193 | + $arrayTemp[$clave] = $arregloConsultas["EstadoCivil"]; | |
| 194 | + } | |
| 195 | + elseif($clave == "telefono"){ | |
| 196 | + $telefono = substr($valor,3); | |
| 197 | + $arrayTemp[$clave] = $telefono; | |
| 198 | + } | |
| 199 | + elseif($clave == "discapacidad"){ | |
| 200 | + $arrayTemp[$clave] = $arregloConsultas["Discapacidad"]; | |
| 201 | + } | |
| 202 | + elseif($clave == "etnia"){ | |
| 203 | + $arrayTemp[$clave] = $arregloConsultas["Etnia"]; | |
| 204 | + } | |
| 205 | + elseif($clave == "aldeaAsig"){ | |
| 206 | + $arrayTemp[$clave] = $arregloConsultas["AldeaPrograma"]->getAldea(); | |
| 207 | + } | |
| 208 | + elseif($clave == "periodoAsig"){ | |
| 209 | + $arrayTemp[$clave] = $arregloConsultas["PeriodoAcademico"]; | |
| 210 | + } | |
| 211 | + elseif($clave == "programaAsig"){ | |
| 212 | + $arrayTemp[$clave] = $arregloConsultas["AldeaPrograma"]->getPrograma(); | |
| 213 | + } | |
| 214 | + elseif($clave == "codPrograma"){ | |
| 215 | + $arrayTemp[$clave] = $arregloConsultas["AldeaPrograma"]->getCodigoOpsu(); | |
| 216 | + } | |
| 217 | + elseif($clave == "estadoRes"){ | |
| 218 | + $arrayTemp[$clave] = $arregloConsultas["AldeaPrograma"]->getAldea()->getAmbiente()->getParroquia()->getMunicipio()->getEstado(); | |
| 219 | + } | |
| 220 | + elseif($clave == "trabaja"){ | |
| 221 | + if($valor === 'S'){ | |
| 222 | + $arrayTemp[$clave]=true; | |
| 223 | + }else{ | |
| 224 | + $arrayTemp[$clave]=false; | |
| 225 | + } | |
| 226 | + }else{ | |
| 227 | + $arrayTemp[$clave] = $valor; | |
| 228 | + } | |
| 229 | + } | |
| 230 | + $arrayTemp["correoTipo"]= $arregloConsultas["CorreoTipo"]; | |
| 231 | + $arrayTemp["telefonoCodigoArea"]= $arregloConsultas["TelefonoCodigoArea"]; | |
| 232 | + $arrayTemp["aspiranteEstatus"]= $arregloConsultas["AspiranteEstatus"]; | |
| 233 | + //die(dump(array("objetos"=>$arregloConsultas,"candidato"=>$arrayTemp))); | |
| 234 | + return $arrayTemp; | |
| 235 | + }else{ | |
| 236 | + return; | |
| 237 | + } | |
| 238 | + | |
| 239 | + | |
| 240 | + } | |
| 241 | + | |
| 242 | +} | |
| 0 | 243 | \ No newline at end of file | ... | ... |
src/UBV/PracticaBundle/Entity/CargaAcademica.php
| ... | ... | @@ -0,0 +1,238 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\CargaAcademica | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\CargaAcademicaRepository") | |
| 12 | + * @ORM\Table(name="carga_academica", indexes={@ORM\Index(name="fk_carga_academica_oferta_academica_detalle1_idx", columns={"oferta_academica_detalle_id"}), @ORM\Index(name="fk_carga_academica_seccion1_idx", columns={"seccion_id"}), @ORM\Index(name="fk_carga_academica_ambiente_espacio1_idx", columns={"ambiente_espacio_id"}), @ORM\Index(name="fk_carga_academica_docente1_idx", columns={"docente_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_carga_academica_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class CargaAcademica | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="carga_academica_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\OneToMany(targetEntity="Horario", mappedBy="cargaAcademica") | |
| 26 | + * @ORM\JoinColumn(name="id", referencedColumnName="carga_academica_id", nullable=false) | |
| 27 | + */ | |
| 28 | + protected $horarios; | |
| 29 | + | |
| 30 | + /** | |
| 31 | + * @ORM\OneToMany(targetEntity="InscripcionDetalle", mappedBy="cargaAcademica") | |
| 32 | + * @ORM\JoinColumn(name="id", referencedColumnName="carga_academica_id", nullable=false) | |
| 33 | + */ | |
| 34 | + protected $inscripcionDetalles; | |
| 35 | + | |
| 36 | + /** | |
| 37 | + * @ORM\ManyToOne(targetEntity="OfertaAcademicaDetalle", inversedBy="cargaAcademicas") | |
| 38 | + * @ORM\JoinColumn(name="oferta_academica_detalle_id", referencedColumnName="id", nullable=false) | |
| 39 | + */ | |
| 40 | + protected $ofertaAcademicaDetalle; | |
| 41 | + | |
| 42 | + /** | |
| 43 | + * @ORM\ManyToOne(targetEntity="Seccion", inversedBy="cargaAcademicas") | |
| 44 | + * @ORM\JoinColumn(name="seccion_id", referencedColumnName="id", nullable=false) | |
| 45 | + */ | |
| 46 | + protected $seccion; | |
| 47 | + | |
| 48 | + /** | |
| 49 | + * @ORM\ManyToOne(targetEntity="AmbienteEspacio", inversedBy="cargaAcademicas") | |
| 50 | + * @ORM\JoinColumn(name="ambiente_espacio_id", referencedColumnName="id", nullable=false) | |
| 51 | + */ | |
| 52 | + protected $ambienteEspacio; | |
| 53 | + | |
| 54 | + /** | |
| 55 | + * @ORM\ManyToOne(targetEntity="Docente", inversedBy="cargaAcademicas") | |
| 56 | + * @ORM\JoinColumn(name="docente_id", referencedColumnName="id", nullable=false) | |
| 57 | + */ | |
| 58 | + protected $docente; | |
| 59 | + | |
| 60 | + public function __construct() | |
| 61 | + { | |
| 62 | + $this->horarios = new ArrayCollection(); | |
| 63 | + $this->inscripcionDetalles = new ArrayCollection(); | |
| 64 | + } | |
| 65 | + | |
| 66 | + public function __sleep() | |
| 67 | + { | |
| 68 | + return array('id', 'oferta_academica_detalle_id', 'seccion_id', 'ambiente_espacio_id', 'docente_id'); | |
| 69 | + } | |
| 70 | + | |
| 71 | + /** | |
| 72 | + * Get id | |
| 73 | + * | |
| 74 | + * @return integer | |
| 75 | + */ | |
| 76 | + public function getId() | |
| 77 | + { | |
| 78 | + return $this->id; | |
| 79 | + } | |
| 80 | + | |
| 81 | + /** | |
| 82 | + * Add horarios | |
| 83 | + * | |
| 84 | + * @param \UBV\SurUbvBundle\Entity\Horario $horarios | |
| 85 | + * @return CargaAcademica | |
| 86 | + */ | |
| 87 | + public function addHorario(\UBV\SurUbvBundle\Entity\Horario $horarios) | |
| 88 | + { | |
| 89 | + $this->horarios[] = $horarios; | |
| 90 | + | |
| 91 | + return $this; | |
| 92 | + } | |
| 93 | + | |
| 94 | + /** | |
| 95 | + * Remove horarios | |
| 96 | + * | |
| 97 | + * @param \UBV\SurUbvBundle\Entity\Horario $horarios | |
| 98 | + */ | |
| 99 | + public function removeHorario(\UBV\SurUbvBundle\Entity\Horario $horarios) | |
| 100 | + { | |
| 101 | + $this->horarios->removeElement($horarios); | |
| 102 | + } | |
| 103 | + | |
| 104 | + /** | |
| 105 | + * Get horarios | |
| 106 | + * | |
| 107 | + * @return \Doctrine\Common\Collections\Collection | |
| 108 | + */ | |
| 109 | + public function getHorarios() | |
| 110 | + { | |
| 111 | + return $this->horarios; | |
| 112 | + } | |
| 113 | + | |
| 114 | + /** | |
| 115 | + * Add inscripcionDetalles | |
| 116 | + * | |
| 117 | + * @param \UBV\SurUbvBundle\Entity\InscripcionDetalle $inscripcionDetalles | |
| 118 | + * @return CargaAcademica | |
| 119 | + */ | |
| 120 | + public function addInscripcionDetalle(\UBV\SurUbvBundle\Entity\InscripcionDetalle $inscripcionDetalles) | |
| 121 | + { | |
| 122 | + $this->inscripcionDetalles[] = $inscripcionDetalles; | |
| 123 | + | |
| 124 | + return $this; | |
| 125 | + } | |
| 126 | + | |
| 127 | + /** | |
| 128 | + * Remove inscripcionDetalles | |
| 129 | + * | |
| 130 | + * @param \UBV\SurUbvBundle\Entity\InscripcionDetalle $inscripcionDetalles | |
| 131 | + */ | |
| 132 | + public function removeInscripcionDetalle(\UBV\SurUbvBundle\Entity\InscripcionDetalle $inscripcionDetalles) | |
| 133 | + { | |
| 134 | + $this->inscripcionDetalles->removeElement($inscripcionDetalles); | |
| 135 | + } | |
| 136 | + | |
| 137 | + /** | |
| 138 | + * Get inscripcionDetalles | |
| 139 | + * | |
| 140 | + * @return \Doctrine\Common\Collections\Collection | |
| 141 | + */ | |
| 142 | + public function getInscripcionDetalles() | |
| 143 | + { | |
| 144 | + return $this->inscripcionDetalles; | |
| 145 | + } | |
| 146 | + | |
| 147 | + /** | |
| 148 | + * Set ofertaAcademicaDetalle | |
| 149 | + * | |
| 150 | + * @param \UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle $ofertaAcademicaDetalle | |
| 151 | + * @return CargaAcademica | |
| 152 | + */ | |
| 153 | + public function setOfertaAcademicaDetalle(\UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle $ofertaAcademicaDetalle) | |
| 154 | + { | |
| 155 | + $this->ofertaAcademicaDetalle = $ofertaAcademicaDetalle; | |
| 156 | + | |
| 157 | + return $this; | |
| 158 | + } | |
| 159 | + | |
| 160 | + /** | |
| 161 | + * Get ofertaAcademicaDetalle | |
| 162 | + * | |
| 163 | + * @return \UBV\SurUbvBundle\Entity\OfertaAcademicaDetalle | |
| 164 | + */ | |
| 165 | + public function getOfertaAcademicaDetalle() | |
| 166 | + { | |
| 167 | + return $this->ofertaAcademicaDetalle; | |
| 168 | + } | |
| 169 | + | |
| 170 | + /** | |
| 171 | + * Set seccion | |
| 172 | + * | |
| 173 | + * @param \UBV\SurUbvBundle\Entity\Seccion $seccion | |
| 174 | + * @return CargaAcademica | |
| 175 | + */ | |
| 176 | + public function setSeccion(\UBV\SurUbvBundle\Entity\Seccion $seccion) | |
| 177 | + { | |
| 178 | + $this->seccion = $seccion; | |
| 179 | + | |
| 180 | + return $this; | |
| 181 | + } | |
| 182 | + | |
| 183 | + /** | |
| 184 | + * Get seccion | |
| 185 | + * | |
| 186 | + * @return \UBV\SurUbvBundle\Entity\Seccion | |
| 187 | + */ | |
| 188 | + public function getSeccion() | |
| 189 | + { | |
| 190 | + return $this->seccion; | |
| 191 | + } | |
| 192 | + | |
| 193 | + /** | |
| 194 | + * Set ambienteEspacio | |
| 195 | + * | |
| 196 | + * @param \UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacio | |
| 197 | + * @return CargaAcademica | |
| 198 | + */ | |
| 199 | + public function setAmbienteEspacio(\UBV\SurUbvBundle\Entity\AmbienteEspacio $ambienteEspacio) | |
| 200 | + { | |
| 201 | + $this->ambienteEspacio = $ambienteEspacio; | |
| 202 | + | |
| 203 | + return $this; | |
| 204 | + } | |
| 205 | + | |
| 206 | + /** | |
| 207 | + * Get ambienteEspacio | |
| 208 | + * | |
| 209 | + * @return \UBV\SurUbvBundle\Entity\AmbienteEspacio | |
| 210 | + */ | |
| 211 | + public function getAmbienteEspacio() | |
| 212 | + { | |
| 213 | + return $this->ambienteEspacio; | |
| 214 | + } | |
| 215 | + | |
| 216 | + /** | |
| 217 | + * Set docente | |
| 218 | + * | |
| 219 | + * @param \UBV\SurUbvBundle\Entity\Docente $docente | |
| 220 | + * @return CargaAcademica | |
| 221 | + */ | |
| 222 | + public function setDocente(\UBV\SurUbvBundle\Entity\Docente $docente) | |
| 223 | + { | |
| 224 | + $this->docente = $docente; | |
| 225 | + | |
| 226 | + return $this; | |
| 227 | + } | |
| 228 | + | |
| 229 | + /** | |
| 230 | + * Get docente | |
| 231 | + * | |
| 232 | + * @return \UBV\SurUbvBundle\Entity\Docente | |
| 233 | + */ | |
| 234 | + public function getDocente() | |
| 235 | + { | |
| 236 | + return $this->docente; | |
| 237 | + } | |
| 238 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/CargaAcademicaRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * CargaAcademicaRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class CargaAcademicaRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/CentroEstudio.php
| ... | ... | @@ -0,0 +1,207 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\CentroEstudio | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\CentroEstudioRepository") | |
| 12 | + * @ORM\Table(name="centro_estudio", indexes={@ORM\Index(name="fk_centro_estudio_area_conocimiento1_idx", columns={"area_conocimiento_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_centro_estudio_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class CentroEstudio | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="centro_estudio_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="string", length=70) | |
| 26 | + */ | |
| 27 | + protected $descripcion; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\Column(type="string", length=5) | |
| 31 | + */ | |
| 32 | + protected $codigo; | |
| 33 | + | |
| 34 | + /** | |
| 35 | + * @ORM\OneToMany(targetEntity="Docente", mappedBy="centroEstudio") | |
| 36 | + * @ORM\JoinColumn(name="id", referencedColumnName="centro_estudio_id", nullable=false) | |
| 37 | + */ | |
| 38 | + protected $docentes; | |
| 39 | + | |
| 40 | + /** | |
| 41 | + * @ORM\OneToMany(targetEntity="Programa", mappedBy="centroEstudio") | |
| 42 | + * @ORM\JoinColumn(name="id", referencedColumnName="centro_estudio_id", nullable=false) | |
| 43 | + */ | |
| 44 | + protected $programas; | |
| 45 | + | |
| 46 | + /** | |
| 47 | + * @ORM\OneToOne(targetEntity="AreaConocimiento", inversedBy="centroEstudio") | |
| 48 | + * @ORM\JoinColumn(name="area_conocimiento_id", referencedColumnName="id", nullable=false) | |
| 49 | + */ | |
| 50 | + protected $areaConocimiento; | |
| 51 | + | |
| 52 | + public function __construct() | |
| 53 | + { | |
| 54 | + $this->docentes = new ArrayCollection(); | |
| 55 | + $this->programas = new ArrayCollection(); | |
| 56 | + } | |
| 57 | + | |
| 58 | + public function __sleep() | |
| 59 | + { | |
| 60 | + return array('id', 'descripcion', 'codigo', 'area_conocimiento_id'); | |
| 61 | + } | |
| 62 | + | |
| 63 | + /** | |
| 64 | + * Get id | |
| 65 | + * | |
| 66 | + * @return integer | |
| 67 | + */ | |
| 68 | + public function getId() | |
| 69 | + { | |
| 70 | + return $this->id; | |
| 71 | + } | |
| 72 | + | |
| 73 | + /** | |
| 74 | + * Set descripcion | |
| 75 | + * | |
| 76 | + * @param string $descripcion | |
| 77 | + * @return CentroEstudio | |
| 78 | + */ | |
| 79 | + public function setDescripcion($descripcion) | |
| 80 | + { | |
| 81 | + $this->descripcion = $descripcion; | |
| 82 | + | |
| 83 | + return $this; | |
| 84 | + } | |
| 85 | + | |
| 86 | + /** | |
| 87 | + * Get descripcion | |
| 88 | + * | |
| 89 | + * @return string | |
| 90 | + */ | |
| 91 | + public function getDescripcion() | |
| 92 | + { | |
| 93 | + return $this->descripcion; | |
| 94 | + } | |
| 95 | + | |
| 96 | + /** | |
| 97 | + * Set codigo | |
| 98 | + * | |
| 99 | + * @param string $codigo | |
| 100 | + * @return CentroEstudio | |
| 101 | + */ | |
| 102 | + public function setCodigo($codigo) | |
| 103 | + { | |
| 104 | + $this->codigo = $codigo; | |
| 105 | + | |
| 106 | + return $this; | |
| 107 | + } | |
| 108 | + | |
| 109 | + /** | |
| 110 | + * Get codigo | |
| 111 | + * | |
| 112 | + * @return string | |
| 113 | + */ | |
| 114 | + public function getCodigo() | |
| 115 | + { | |
| 116 | + return $this->codigo; | |
| 117 | + } | |
| 118 | + | |
| 119 | + /** | |
| 120 | + * Add docentes | |
| 121 | + * | |
| 122 | + * @param \UBV\SurUbvBundle\Entity\Docente $docentes | |
| 123 | + * @return CentroEstudio | |
| 124 | + */ | |
| 125 | + public function addDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) | |
| 126 | + { | |
| 127 | + $this->docentes[] = $docentes; | |
| 128 | + | |
| 129 | + return $this; | |
| 130 | + } | |
| 131 | + | |
| 132 | + /** | |
| 133 | + * Remove docentes | |
| 134 | + * | |
| 135 | + * @param \UBV\SurUbvBundle\Entity\Docente $docentes | |
| 136 | + */ | |
| 137 | + public function removeDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) | |
| 138 | + { | |
| 139 | + $this->docentes->removeElement($docentes); | |
| 140 | + } | |
| 141 | + | |
| 142 | + /** | |
| 143 | + * Get docentes | |
| 144 | + * | |
| 145 | + * @return \Doctrine\Common\Collections\Collection | |
| 146 | + */ | |
| 147 | + public function getDocentes() | |
| 148 | + { | |
| 149 | + return $this->docentes; | |
| 150 | + } | |
| 151 | + | |
| 152 | + /** | |
| 153 | + * Add programas | |
| 154 | + * | |
| 155 | + * @param \UBV\SurUbvBundle\Entity\Programa $programas | |
| 156 | + * @return CentroEstudio | |
| 157 | + */ | |
| 158 | + public function addPrograma(\UBV\SurUbvBundle\Entity\Programa $programas) | |
| 159 | + { | |
| 160 | + $this->programas[] = $programas; | |
| 161 | + | |
| 162 | + return $this; | |
| 163 | + } | |
| 164 | + | |
| 165 | + /** | |
| 166 | + * Remove programas | |
| 167 | + * | |
| 168 | + * @param \UBV\SurUbvBundle\Entity\Programa $programas | |
| 169 | + */ | |
| 170 | + public function removePrograma(\UBV\SurUbvBundle\Entity\Programa $programas) | |
| 171 | + { | |
| 172 | + $this->programas->removeElement($programas); | |
| 173 | + } | |
| 174 | + | |
| 175 | + /** | |
| 176 | + * Get programas | |
| 177 | + * | |
| 178 | + * @return \Doctrine\Common\Collections\Collection | |
| 179 | + */ | |
| 180 | + public function getProgramas() | |
| 181 | + { | |
| 182 | + return $this->programas; | |
| 183 | + } | |
| 184 | + | |
| 185 | + /** | |
| 186 | + * Set areaConocimiento | |
| 187 | + * | |
| 188 | + * @param \UBV\SurUbvBundle\Entity\AreaConocimiento $areaConocimiento | |
| 189 | + * @return CentroEstudio | |
| 190 | + */ | |
| 191 | + public function setAreaConocimiento(\UBV\SurUbvBundle\Entity\AreaConocimiento $areaConocimiento) | |
| 192 | + { | |
| 193 | + $this->areaConocimiento = $areaConocimiento; | |
| 194 | + | |
| 195 | + return $this; | |
| 196 | + } | |
| 197 | + | |
| 198 | + /** | |
| 199 | + * Get areaConocimiento | |
| 200 | + * | |
| 201 | + * @return \UBV\SurUbvBundle\Entity\AreaConocimiento | |
| 202 | + */ | |
| 203 | + public function getAreaConocimiento() | |
| 204 | + { | |
| 205 | + return $this->areaConocimiento; | |
| 206 | + } | |
| 207 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/CentroEstudioRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * CentroEstudioRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class CentroEstudioRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/Ciudad.php
| ... | ... | @@ -0,0 +1,139 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\Ciudad | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\CiudadRepository") | |
| 12 | + * @ORM\Table(name="ciudad", indexes={@ORM\Index(name="fk_ciudad_estado1_idx", columns={"estado_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_ciudad_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class Ciudad | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="ciudad_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="string", length=70, nullable=true) | |
| 26 | + */ | |
| 27 | + protected $descripcion; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\OneToMany(targetEntity="DomicilioPersona", mappedBy="ciudad") | |
| 31 | + * @ORM\JoinColumn(name="id", referencedColumnName="ciudad_id", nullable=false) | |
| 32 | + */ | |
| 33 | + protected $domicilioPersonas; | |
| 34 | + | |
| 35 | + /** | |
| 36 | + * @ORM\ManyToOne(targetEntity="Estado", inversedBy="ciudads") | |
| 37 | + * @ORM\JoinColumn(name="estado_id", referencedColumnName="id", nullable=false) | |
| 38 | + */ | |
| 39 | + protected $estado; | |
| 40 | + | |
| 41 | + public function __construct() | |
| 42 | + { | |
| 43 | + $this->domicilioPersonas = new ArrayCollection(); | |
| 44 | + } | |
| 45 | + | |
| 46 | + public function __sleep() | |
| 47 | + { | |
| 48 | + return array('id', 'descripcion', 'estado_id'); | |
| 49 | + } | |
| 50 | + | |
| 51 | + /** | |
| 52 | + * Get id | |
| 53 | + * | |
| 54 | + * @return integer | |
| 55 | + */ | |
| 56 | + public function getId() | |
| 57 | + { | |
| 58 | + return $this->id; | |
| 59 | + } | |
| 60 | + | |
| 61 | + /** | |
| 62 | + * Set descripcion | |
| 63 | + * | |
| 64 | + * @param string $descripcion | |
| 65 | + * @return Ciudad | |
| 66 | + */ | |
| 67 | + public function setDescripcion($descripcion) | |
| 68 | + { | |
| 69 | + $this->descripcion = $descripcion; | |
| 70 | + | |
| 71 | + return $this; | |
| 72 | + } | |
| 73 | + | |
| 74 | + /** | |
| 75 | + * Get descripcion | |
| 76 | + * | |
| 77 | + * @return string | |
| 78 | + */ | |
| 79 | + public function getDescripcion() | |
| 80 | + { | |
| 81 | + return $this->descripcion; | |
| 82 | + } | |
| 83 | + | |
| 84 | + /** | |
| 85 | + * Add domicilioPersonas | |
| 86 | + * | |
| 87 | + * @param \UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas | |
| 88 | + * @return Ciudad | |
| 89 | + */ | |
| 90 | + public function addDomicilioPersona(\UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas) | |
| 91 | + { | |
| 92 | + $this->domicilioPersonas[] = $domicilioPersonas; | |
| 93 | + | |
| 94 | + return $this; | |
| 95 | + } | |
| 96 | + | |
| 97 | + /** | |
| 98 | + * Remove domicilioPersonas | |
| 99 | + * | |
| 100 | + * @param \UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas | |
| 101 | + */ | |
| 102 | + public function removeDomicilioPersona(\UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersonas) | |
| 103 | + { | |
| 104 | + $this->domicilioPersonas->removeElement($domicilioPersonas); | |
| 105 | + } | |
| 106 | + | |
| 107 | + /** | |
| 108 | + * Get domicilioPersonas | |
| 109 | + * | |
| 110 | + * @return \Doctrine\Common\Collections\Collection | |
| 111 | + */ | |
| 112 | + public function getDomicilioPersonas() | |
| 113 | + { | |
| 114 | + return $this->domicilioPersonas; | |
| 115 | + } | |
| 116 | + | |
| 117 | + /** | |
| 118 | + * Set estado | |
| 119 | + * | |
| 120 | + * @param \UBV\SurUbvBundle\Entity\Estado $estado | |
| 121 | + * @return Ciudad | |
| 122 | + */ | |
| 123 | + public function setEstado(\UBV\SurUbvBundle\Entity\Estado $estado) | |
| 124 | + { | |
| 125 | + $this->estado = $estado; | |
| 126 | + | |
| 127 | + return $this; | |
| 128 | + } | |
| 129 | + | |
| 130 | + /** | |
| 131 | + * Get estado | |
| 132 | + * | |
| 133 | + * @return \UBV\SurUbvBundle\Entity\Estado | |
| 134 | + */ | |
| 135 | + public function getEstado() | |
| 136 | + { | |
| 137 | + return $this->estado; | |
| 138 | + } | |
| 139 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/CiudadRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * CiudadRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class CiudadRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/ComiteTipo.php
| ... | ... | @@ -0,0 +1,110 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\ComiteTipo | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\ComiteTipoRepository") | |
| 12 | + * @ORM\Table(name="comite_tipo", uniqueConstraints={@ORM\UniqueConstraint(name="id_comite_tipo_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class ComiteTipo | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="comite_tipo_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="string", length=45) | |
| 26 | + */ | |
| 27 | + protected $descripcion; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\OneToMany(targetEntity="ComitepfaIntegrante", mappedBy="comiteTipo") | |
| 31 | + * @ORM\JoinColumn(name="id", referencedColumnName="comite_tipo_id", nullable=false) | |
| 32 | + */ | |
| 33 | + protected $comitepfaIntegrantes; | |
| 34 | + | |
| 35 | + public function __construct() | |
| 36 | + { | |
| 37 | + $this->comitepfaIntegrantes = new ArrayCollection(); | |
| 38 | + } | |
| 39 | + | |
| 40 | + public function __sleep() | |
| 41 | + { | |
| 42 | + return array('id', 'descripcion'); | |
| 43 | + } | |
| 44 | + | |
| 45 | + /** | |
| 46 | + * Get id | |
| 47 | + * | |
| 48 | + * @return integer | |
| 49 | + */ | |
| 50 | + public function getId() | |
| 51 | + { | |
| 52 | + return $this->id; | |
| 53 | + } | |
| 54 | + | |
| 55 | + /** | |
| 56 | + * Set descripcion | |
| 57 | + * | |
| 58 | + * @param string $descripcion | |
| 59 | + * @return ComiteTipo | |
| 60 | + */ | |
| 61 | + public function setDescripcion($descripcion) | |
| 62 | + { | |
| 63 | + $this->descripcion = $descripcion; | |
| 64 | + | |
| 65 | + return $this; | |
| 66 | + } | |
| 67 | + | |
| 68 | + /** | |
| 69 | + * Get descripcion | |
| 70 | + * | |
| 71 | + * @return string | |
| 72 | + */ | |
| 73 | + public function getDescripcion() | |
| 74 | + { | |
| 75 | + return $this->descripcion; | |
| 76 | + } | |
| 77 | + | |
| 78 | + /** | |
| 79 | + * Add comitepfaIntegrantes | |
| 80 | + * | |
| 81 | + * @param \UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes | |
| 82 | + * @return ComiteTipo | |
| 83 | + */ | |
| 84 | + public function addComitepfaIntegrante(\UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes) | |
| 85 | + { | |
| 86 | + $this->comitepfaIntegrantes[] = $comitepfaIntegrantes; | |
| 87 | + | |
| 88 | + return $this; | |
| 89 | + } | |
| 90 | + | |
| 91 | + /** | |
| 92 | + * Remove comitepfaIntegrantes | |
| 93 | + * | |
| 94 | + * @param \UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes | |
| 95 | + */ | |
| 96 | + public function removeComitepfaIntegrante(\UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes) | |
| 97 | + { | |
| 98 | + $this->comitepfaIntegrantes->removeElement($comitepfaIntegrantes); | |
| 99 | + } | |
| 100 | + | |
| 101 | + /** | |
| 102 | + * Get comitepfaIntegrantes | |
| 103 | + * | |
| 104 | + * @return \Doctrine\Common\Collections\Collection | |
| 105 | + */ | |
| 106 | + public function getComitepfaIntegrantes() | |
| 107 | + { | |
| 108 | + return $this->comitepfaIntegrantes; | |
| 109 | + } | |
| 110 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/ComiteTipoRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * ComiteTipoRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class ComiteTipoRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/ComitepfaIntegrante.php
| ... | ... | @@ -0,0 +1,212 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * UBV\SurUbvBundle\Entity\ComitepfaIntegrante | |
| 9 | + * | |
| 10 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\ComitepfaIntegranteRepository") | |
| 11 | + * @ORM\Table(name="comitepfa_integrante", indexes={@ORM\Index(name="fk_comitepfa_integrante_programa1_idx", columns={"programa_id"}), @ORM\Index(name="fk_comitepfa_integrante_docente1_idx", columns={"docente_id"}), @ORM\Index(name="fk_comitepfa_integrante_comite_tipo1_idx", columns={"comite_tipo_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_comitepfa_integrante_UNIQUE", columns={"id"})}) | |
| 12 | + */ | |
| 13 | +class ComitepfaIntegrante | |
| 14 | +{ | |
| 15 | + /** | |
| 16 | + * @ORM\Id | |
| 17 | + * @ORM\Column(type="integer") | |
| 18 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 19 | + * @ORM\SequenceGenerator(sequenceName="comitepfa_integrante_id_seq", allocationSize=1, initialValue=1) | |
| 20 | + */ | |
| 21 | + protected $id; | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * @ORM\Column(type="date") | |
| 25 | + */ | |
| 26 | + protected $fecha_inicio; | |
| 27 | + | |
| 28 | + /** | |
| 29 | + * @ORM\Column(type="date") | |
| 30 | + */ | |
| 31 | + protected $fecha_fin; | |
| 32 | + | |
| 33 | + /** | |
| 34 | + * @ORM\Column(type="boolean") | |
| 35 | + */ | |
| 36 | + protected $estatus; | |
| 37 | + | |
| 38 | + /** | |
| 39 | + * @ORM\ManyToOne(targetEntity="Programa", inversedBy="comitepfaIntegrantes") | |
| 40 | + * @ORM\JoinColumn(name="programa_id", referencedColumnName="id", nullable=false) | |
| 41 | + */ | |
| 42 | + protected $programa; | |
| 43 | + | |
| 44 | + /** | |
| 45 | + * @ORM\ManyToOne(targetEntity="Docente", inversedBy="comitepfaIntegrantes") | |
| 46 | + * @ORM\JoinColumn(name="docente_id", referencedColumnName="id", nullable=false) | |
| 47 | + */ | |
| 48 | + protected $docente; | |
| 49 | + | |
| 50 | + /** | |
| 51 | + * @ORM\ManyToOne(targetEntity="ComiteTipo", inversedBy="comitepfaIntegrantes") | |
| 52 | + * @ORM\JoinColumn(name="comite_tipo_id", referencedColumnName="id", nullable=false) | |
| 53 | + */ | |
| 54 | + protected $comiteTipo; | |
| 55 | + | |
| 56 | + public function __construct() | |
| 57 | + { | |
| 58 | + } | |
| 59 | + | |
| 60 | + public function __sleep() | |
| 61 | + { | |
| 62 | + return array('id', 'fecha_inicio', 'fecha_fin', 'estatus', 'programa_id', 'docente_id', 'comite_tipo_id'); | |
| 63 | + } | |
| 64 | + | |
| 65 | + /** | |
| 66 | + * Get id | |
| 67 | + * | |
| 68 | + * @return integer | |
| 69 | + */ | |
| 70 | + public function getId() | |
| 71 | + { | |
| 72 | + return $this->id; | |
| 73 | + } | |
| 74 | + | |
| 75 | + /** | |
| 76 | + * Set fecha_inicio | |
| 77 | + * | |
| 78 | + * @param \DateTime $fechaInicio | |
| 79 | + * @return ComitepfaIntegrante | |
| 80 | + */ | |
| 81 | + public function setFechaInicio($fechaInicio) | |
| 82 | + { | |
| 83 | + $this->fecha_inicio = $fechaInicio; | |
| 84 | + | |
| 85 | + return $this; | |
| 86 | + } | |
| 87 | + | |
| 88 | + /** | |
| 89 | + * Get fecha_inicio | |
| 90 | + * | |
| 91 | + * @return \DateTime | |
| 92 | + */ | |
| 93 | + public function getFechaInicio() | |
| 94 | + { | |
| 95 | + return $this->fecha_inicio; | |
| 96 | + } | |
| 97 | + | |
| 98 | + /** | |
| 99 | + * Set fecha_fin | |
| 100 | + * | |
| 101 | + * @param \DateTime $fechaFin | |
| 102 | + * @return ComitepfaIntegrante | |
| 103 | + */ | |
| 104 | + public function setFechaFin($fechaFin) | |
| 105 | + { | |
| 106 | + $this->fecha_fin = $fechaFin; | |
| 107 | + | |
| 108 | + return $this; | |
| 109 | + } | |
| 110 | + | |
| 111 | + /** | |
| 112 | + * Get fecha_fin | |
| 113 | + * | |
| 114 | + * @return \DateTime | |
| 115 | + */ | |
| 116 | + public function getFechaFin() | |
| 117 | + { | |
| 118 | + return $this->fecha_fin; | |
| 119 | + } | |
| 120 | + | |
| 121 | + /** | |
| 122 | + * Set estatus | |
| 123 | + * | |
| 124 | + * @param boolean $estatus | |
| 125 | + * @return ComitepfaIntegrante | |
| 126 | + */ | |
| 127 | + public function setEstatus($estatus) | |
| 128 | + { | |
| 129 | + $this->estatus = $estatus; | |
| 130 | + | |
| 131 | + return $this; | |
| 132 | + } | |
| 133 | + | |
| 134 | + /** | |
| 135 | + * Get estatus | |
| 136 | + * | |
| 137 | + * @return boolean | |
| 138 | + */ | |
| 139 | + public function getEstatus() | |
| 140 | + { | |
| 141 | + return $this->estatus; | |
| 142 | + } | |
| 143 | + | |
| 144 | + /** | |
| 145 | + * Set programa | |
| 146 | + * | |
| 147 | + * @param \UBV\SurUbvBundle\Entity\Programa $programa | |
| 148 | + * @return ComitepfaIntegrante | |
| 149 | + */ | |
| 150 | + public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) | |
| 151 | + { | |
| 152 | + $this->programa = $programa; | |
| 153 | + | |
| 154 | + return $this; | |
| 155 | + } | |
| 156 | + | |
| 157 | + /** | |
| 158 | + * Get programa | |
| 159 | + * | |
| 160 | + * @return \UBV\SurUbvBundle\Entity\Programa | |
| 161 | + */ | |
| 162 | + public function getPrograma() | |
| 163 | + { | |
| 164 | + return $this->programa; | |
| 165 | + } | |
| 166 | + | |
| 167 | + /** | |
| 168 | + * Set docente | |
| 169 | + * | |
| 170 | + * @param \UBV\SurUbvBundle\Entity\Docente $docente | |
| 171 | + * @return ComitepfaIntegrante | |
| 172 | + */ | |
| 173 | + public function setDocente(\UBV\SurUbvBundle\Entity\Docente $docente) | |
| 174 | + { | |
| 175 | + $this->docente = $docente; | |
| 176 | + | |
| 177 | + return $this; | |
| 178 | + } | |
| 179 | + | |
| 180 | + /** | |
| 181 | + * Get docente | |
| 182 | + * | |
| 183 | + * @return \UBV\SurUbvBundle\Entity\Docente | |
| 184 | + */ | |
| 185 | + public function getDocente() | |
| 186 | + { | |
| 187 | + return $this->docente; | |
| 188 | + } | |
| 189 | + | |
| 190 | + /** | |
| 191 | + * Set comiteTipo | |
| 192 | + * | |
| 193 | + * @param \UBV\SurUbvBundle\Entity\ComiteTipo $comiteTipo | |
| 194 | + * @return ComitepfaIntegrante | |
| 195 | + */ | |
| 196 | + public function setComiteTipo(\UBV\SurUbvBundle\Entity\ComiteTipo $comiteTipo) | |
| 197 | + { | |
| 198 | + $this->comiteTipo = $comiteTipo; | |
| 199 | + | |
| 200 | + return $this; | |
| 201 | + } | |
| 202 | + | |
| 203 | + /** | |
| 204 | + * Get comiteTipo | |
| 205 | + * | |
| 206 | + * @return \UBV\SurUbvBundle\Entity\ComiteTipo | |
| 207 | + */ | |
| 208 | + public function getComiteTipo() | |
| 209 | + { | |
| 210 | + return $this->comiteTipo; | |
| 211 | + } | |
| 212 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/ComitepfaIntegranteRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * ComitepfaIntegranteRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class ComitepfaIntegranteRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/Competencia.php
| ... | ... | @@ -0,0 +1,139 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * UBV\SurUbvBundle\Entity\Competencia | |
| 9 | + * | |
| 10 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\CompetenciaRepository") | |
| 11 | + * @ORM\Table(name="competencia", indexes={@ORM\Index(name="fk_malla_curricular_detalle_has_prueba1_idx", columns={"malla_curricular_detalle_id1"}), @ORM\Index(name="fk_malla_curricular_detalle_has_prueba2_idx1", columns={"malla_curricular_detalle_id"})}) | |
| 12 | + */ | |
| 13 | +class Competencia | |
| 14 | +{ | |
| 15 | + /** | |
| 16 | + * @ORM\Id | |
| 17 | + * @ORM\Column(type="integer") | |
| 18 | + */ | |
| 19 | + protected $malla_curricular_detalle_id; | |
| 20 | + | |
| 21 | + /** | |
| 22 | + * @ORM\Id | |
| 23 | + * @ORM\Column(type="integer") | |
| 24 | + */ | |
| 25 | + protected $malla_curricular_detalle_id1; | |
| 26 | + | |
| 27 | + /** | |
| 28 | + * @ORM\ManyToOne(targetEntity="MallaCurricularDetalle", inversedBy="competenciaRelatedByMallaCurricularDetalleIds") | |
| 29 | + * @ORM\JoinColumn(name="malla_curricular_detalle_id", referencedColumnName="id", nullable=false) | |
| 30 | + */ | |
| 31 | + protected $mallaCurricularDetalleRelatedByMallaCurricularDetalleId; | |
| 32 | + | |
| 33 | + /** | |
| 34 | + * @ORM\ManyToOne(targetEntity="MallaCurricularDetalle", inversedBy="competenciaRelatedByMallaCurricularDetalleId1s") | |
| 35 | + * @ORM\JoinColumn(name="malla_curricular_detalle_id1", referencedColumnName="id", nullable=false) | |
| 36 | + */ | |
| 37 | + protected $mallaCurricularDetalleRelatedByMallaCurricularDetalleId1; | |
| 38 | + | |
| 39 | + public function __construct() | |
| 40 | + { | |
| 41 | + } | |
| 42 | + | |
| 43 | + public function __sleep() | |
| 44 | + { | |
| 45 | + return array('malla_curricular_detalle_id', 'malla_curricular_detalle_id1'); | |
| 46 | + } | |
| 47 | + | |
| 48 | + /** | |
| 49 | + * Set malla_curricular_detalle_id | |
| 50 | + * | |
| 51 | + * @param integer $mallaCurricularDetalleId | |
| 52 | + * @return Competencia | |
| 53 | + */ | |
| 54 | + public function setMallaCurricularDetalleId($mallaCurricularDetalleId) | |
| 55 | + { | |
| 56 | + $this->malla_curricular_detalle_id = $mallaCurricularDetalleId; | |
| 57 | + | |
| 58 | + return $this; | |
| 59 | + } | |
| 60 | + | |
| 61 | + /** | |
| 62 | + * Get malla_curricular_detalle_id | |
| 63 | + * | |
| 64 | + * @return integer | |
| 65 | + */ | |
| 66 | + public function getMallaCurricularDetalleId() | |
| 67 | + { | |
| 68 | + return $this->malla_curricular_detalle_id; | |
| 69 | + } | |
| 70 | + | |
| 71 | + /** | |
| 72 | + * Set malla_curricular_detalle_id1 | |
| 73 | + * | |
| 74 | + * @param integer $mallaCurricularDetalleId1 | |
| 75 | + * @return Competencia | |
| 76 | + */ | |
| 77 | + public function setMallaCurricularDetalleId1($mallaCurricularDetalleId1) | |
| 78 | + { | |
| 79 | + $this->malla_curricular_detalle_id1 = $mallaCurricularDetalleId1; | |
| 80 | + | |
| 81 | + return $this; | |
| 82 | + } | |
| 83 | + | |
| 84 | + /** | |
| 85 | + * Get malla_curricular_detalle_id1 | |
| 86 | + * | |
| 87 | + * @return integer | |
| 88 | + */ | |
| 89 | + public function getMallaCurricularDetalleId1() | |
| 90 | + { | |
| 91 | + return $this->malla_curricular_detalle_id1; | |
| 92 | + } | |
| 93 | + | |
| 94 | + /** | |
| 95 | + * Set mallaCurricularDetalleRelatedByMallaCurricularDetalleId | |
| 96 | + * | |
| 97 | + * @param \UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalleRelatedByMallaCurricularDetalleId | |
| 98 | + * @return Competencia | |
| 99 | + */ | |
| 100 | + public function setMallaCurricularDetalleRelatedByMallaCurricularDetalleId(\UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalleRelatedByMallaCurricularDetalleId) | |
| 101 | + { | |
| 102 | + $this->mallaCurricularDetalleRelatedByMallaCurricularDetalleId = $mallaCurricularDetalleRelatedByMallaCurricularDetalleId; | |
| 103 | + | |
| 104 | + return $this; | |
| 105 | + } | |
| 106 | + | |
| 107 | + /** | |
| 108 | + * Get mallaCurricularDetalleRelatedByMallaCurricularDetalleId | |
| 109 | + * | |
| 110 | + * @return \UBV\SurUbvBundle\Entity\MallaCurricularDetalle | |
| 111 | + */ | |
| 112 | + public function getMallaCurricularDetalleRelatedByMallaCurricularDetalleId() | |
| 113 | + { | |
| 114 | + return $this->mallaCurricularDetalleRelatedByMallaCurricularDetalleId; | |
| 115 | + } | |
| 116 | + | |
| 117 | + /** | |
| 118 | + * Set mallaCurricularDetalleRelatedByMallaCurricularDetalleId1 | |
| 119 | + * | |
| 120 | + * @param \UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalleRelatedByMallaCurricularDetalleId1 | |
| 121 | + * @return Competencia | |
| 122 | + */ | |
| 123 | + public function setMallaCurricularDetalleRelatedByMallaCurricularDetalleId1(\UBV\SurUbvBundle\Entity\MallaCurricularDetalle $mallaCurricularDetalleRelatedByMallaCurricularDetalleId1) | |
| 124 | + { | |
| 125 | + $this->mallaCurricularDetalleRelatedByMallaCurricularDetalleId1 = $mallaCurricularDetalleRelatedByMallaCurricularDetalleId1; | |
| 126 | + | |
| 127 | + return $this; | |
| 128 | + } | |
| 129 | + | |
| 130 | + /** | |
| 131 | + * Get mallaCurricularDetalleRelatedByMallaCurricularDetalleId1 | |
| 132 | + * | |
| 133 | + * @return \UBV\SurUbvBundle\Entity\MallaCurricularDetalle | |
| 134 | + */ | |
| 135 | + public function getMallaCurricularDetalleRelatedByMallaCurricularDetalleId1() | |
| 136 | + { | |
| 137 | + return $this->mallaCurricularDetalleRelatedByMallaCurricularDetalleId1; | |
| 138 | + } | |
| 139 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/CompetenciaRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * CompetenciaRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class CompetenciaRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/Convenio.php
| ... | ... | @@ -0,0 +1,121 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\Convenio | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\ConvenioRepository") | |
| 12 | + * @ORM\Table(name="convenio", uniqueConstraints={@ORM\UniqueConstraint(name="id_convenio_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class Convenio | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + */ | |
| 20 | + protected $id; | |
| 21 | + | |
| 22 | + /** | |
| 23 | + * @ORM\Column(type="string", length=45) | |
| 24 | + */ | |
| 25 | + protected $descripcion; | |
| 26 | + | |
| 27 | + /** | |
| 28 | + * @ORM\OneToMany(targetEntity="Candidato", mappedBy="convenio") | |
| 29 | + * @ORM\JoinColumn(name="id", referencedColumnName="convenio_id", nullable=false) | |
| 30 | + */ | |
| 31 | + protected $candidatos; | |
| 32 | + | |
| 33 | + public function __construct() | |
| 34 | + { | |
| 35 | + $this->candidatos = new ArrayCollection(); | |
| 36 | + } | |
| 37 | + | |
| 38 | + public function __sleep() | |
| 39 | + { | |
| 40 | + return array('id', 'descripcion'); | |
| 41 | + } | |
| 42 | + | |
| 43 | + /** | |
| 44 | + * Set id | |
| 45 | + * | |
| 46 | + * @param integer $id | |
| 47 | + * @return Convenio | |
| 48 | + */ | |
| 49 | + public function setId($id) | |
| 50 | + { | |
| 51 | + $this->id = $id; | |
| 52 | + | |
| 53 | + return $this; | |
| 54 | + } | |
| 55 | + | |
| 56 | + /** | |
| 57 | + * Get id | |
| 58 | + * | |
| 59 | + * @return integer | |
| 60 | + */ | |
| 61 | + public function getId() | |
| 62 | + { | |
| 63 | + return $this->id; | |
| 64 | + } | |
| 65 | + | |
| 66 | + /** | |
| 67 | + * Set descripcion | |
| 68 | + * | |
| 69 | + * @param string $descripcion | |
| 70 | + * @return Convenio | |
| 71 | + */ | |
| 72 | + public function setDescripcion($descripcion) | |
| 73 | + { | |
| 74 | + $this->descripcion = $descripcion; | |
| 75 | + | |
| 76 | + return $this; | |
| 77 | + } | |
| 78 | + | |
| 79 | + /** | |
| 80 | + * Get descripcion | |
| 81 | + * | |
| 82 | + * @return string | |
| 83 | + */ | |
| 84 | + public function getDescripcion() | |
| 85 | + { | |
| 86 | + return $this->descripcion; | |
| 87 | + } | |
| 88 | + | |
| 89 | + /** | |
| 90 | + * Add candidatos | |
| 91 | + * | |
| 92 | + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
| 93 | + * @return Convenio | |
| 94 | + */ | |
| 95 | + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
| 96 | + { | |
| 97 | + $this->candidatos[] = $candidatos; | |
| 98 | + | |
| 99 | + return $this; | |
| 100 | + } | |
| 101 | + | |
| 102 | + /** | |
| 103 | + * Remove candidatos | |
| 104 | + * | |
| 105 | + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
| 106 | + */ | |
| 107 | + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
| 108 | + { | |
| 109 | + $this->candidatos->removeElement($candidatos); | |
| 110 | + } | |
| 111 | + | |
| 112 | + /** | |
| 113 | + * Get candidatos | |
| 114 | + * | |
| 115 | + * @return \Doctrine\Common\Collections\Collection | |
| 116 | + */ | |
| 117 | + public function getCandidatos() | |
| 118 | + { | |
| 119 | + return $this->candidatos; | |
| 120 | + } | |
| 121 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/ConvenioRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * ConvenioRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class ConvenioRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/CorreoTipo.php
| ... | ... | @@ -0,0 +1,162 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | +use Symfony\Component\Validator\Constraints as Assert; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * UBV\SurUbvBundle\Entity\CorreoTipo | |
| 11 | + * | |
| 12 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\CorreoTipoRepository") | |
| 13 | + * @ORM\Table(name="correo_tipo", uniqueConstraints={@ORM\UniqueConstraint(name="id_correo_tipo_UNIQUE", columns={"id"})}) | |
| 14 | + */ | |
| 15 | +class CorreoTipo | |
| 16 | +{ | |
| 17 | + /** | |
| 18 | + * @ORM\Id | |
| 19 | + * @ORM\Column(type="integer") | |
| 20 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 21 | + * @ORM\SequenceGenerator(sequenceName="correo_tipo_id_seq", allocationSize=1, initialValue=1) | |
| 22 | + */ | |
| 23 | + protected $id; | |
| 24 | + | |
| 25 | + /** | |
| 26 | + * @ORM\Column(type="string", length=20) | |
| 27 | + *@Assert\NotBlank( message= "Por favor introduzca la Descripciรณn del Correo") | |
| 28 | + *@Assert\Length( | |
| 29 | + * min = 5, | |
| 30 | + * max = 20, | |
| 31 | + * minMessage = "Por favor introduzca un Tipo de Correo mรกs especรญfico. Mรญnimo {{ limit }} caracteres", | |
| 32 | + * maxMessage = "Por favor introduzca un Tipo de Correo mรกs breve. Mรกximo {{ limit }} caracteres", | |
| 33 | + *) | |
| 34 | + */ | |
| 35 | + protected $descripcion; | |
| 36 | + | |
| 37 | + /** | |
| 38 | + * @ORM\OneToMany(targetEntity="PersonaCorreo", mappedBy="correoTipo") | |
| 39 | + * @ORM\JoinColumn(name="id", referencedColumnName="correo_tipo_id", nullable=false) | |
| 40 | + */ | |
| 41 | + protected $personaCorreos; | |
| 42 | + | |
| 43 | + /** | |
| 44 | + * @ORM\OneToMany(targetEntity="Candidato", mappedBy="correoTipo") | |
| 45 | + * @ORM\JoinColumn(name="id", referencedColumnName="correo_tipo_id", nullable=false) | |
| 46 | + */ | |
| 47 | + protected $candidatos; | |
| 48 | + | |
| 49 | + public function __construct() | |
| 50 | + { | |
| 51 | + $this->personaCorreos = new ArrayCollection(); | |
| 52 | + $this->candidatos = new ArrayCollection(); | |
| 53 | + } | |
| 54 | + | |
| 55 | + public function __sleep() | |
| 56 | + { | |
| 57 | + return array('id', 'descripcion'); | |
| 58 | + } | |
| 59 | + | |
| 60 | + /** | |
| 61 | + * Get id | |
| 62 | + * | |
| 63 | + * @return integer | |
| 64 | + */ | |
| 65 | + public function getId() | |
| 66 | + { | |
| 67 | + return $this->id; | |
| 68 | + } | |
| 69 | + | |
| 70 | + /** | |
| 71 | + * Set descripcion | |
| 72 | + * | |
| 73 | + * @param string $descripcion | |
| 74 | + * @return CorreoTipo | |
| 75 | + */ | |
| 76 | + public function setDescripcion($descripcion) | |
| 77 | + { | |
| 78 | + $this->descripcion = $descripcion; | |
| 79 | + | |
| 80 | + return $this; | |
| 81 | + } | |
| 82 | + | |
| 83 | + /** | |
| 84 | + * Get descripcion | |
| 85 | + * | |
| 86 | + * @return string | |
| 87 | + */ | |
| 88 | + public function getDescripcion() | |
| 89 | + { | |
| 90 | + return $this->descripcion; | |
| 91 | + } | |
| 92 | + | |
| 93 | + /** | |
| 94 | + * Add personaCorreos | |
| 95 | + * | |
| 96 | + * @param \UBV\SurUbvBundle\Entity\PersonaCorreo $personaCorreos | |
| 97 | + * @return CorreoTipo | |
| 98 | + */ | |
| 99 | + public function addPersonaCorreo(\UBV\SurUbvBundle\Entity\PersonaCorreo $personaCorreos) | |
| 100 | + { | |
| 101 | + $this->personaCorreos[] = $personaCorreos; | |
| 102 | + | |
| 103 | + return $this; | |
| 104 | + } | |
| 105 | + | |
| 106 | + /** | |
| 107 | + * Remove personaCorreos | |
| 108 | + * | |
| 109 | + * @param \UBV\SurUbvBundle\Entity\PersonaCorreo $personaCorreos | |
| 110 | + */ | |
| 111 | + public function removePersonaCorreo(\UBV\SurUbvBundle\Entity\PersonaCorreo $personaCorreos) | |
| 112 | + { | |
| 113 | + $this->personaCorreos->removeElement($personaCorreos); | |
| 114 | + } | |
| 115 | + | |
| 116 | + /** | |
| 117 | + * Get personaCorreos | |
| 118 | + * | |
| 119 | + * @return \Doctrine\Common\Collections\Collection | |
| 120 | + */ | |
| 121 | + public function getPersonaCorreos() | |
| 122 | + { | |
| 123 | + return $this->personaCorreos; | |
| 124 | + } | |
| 125 | + | |
| 126 | + public function __toString() { | |
| 127 | + return $this->getDescripcion(); | |
| 128 | + } | |
| 129 | + | |
| 130 | + /** | |
| 131 | + * Add candidatos | |
| 132 | + * | |
| 133 | + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
| 134 | + * @return CorreoTipo | |
| 135 | + */ | |
| 136 | + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
| 137 | + { | |
| 138 | + $this->candidatos[] = $candidatos; | |
| 139 | + | |
| 140 | + return $this; | |
| 141 | + } | |
| 142 | + | |
| 143 | + /** | |
| 144 | + * Remove candidatos | |
| 145 | + * | |
| 146 | + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
| 147 | + */ | |
| 148 | + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
| 149 | + { | |
| 150 | + $this->candidatos->removeElement($candidatos); | |
| 151 | + } | |
| 152 | + | |
| 153 | + /** | |
| 154 | + * Get candidatos | |
| 155 | + * | |
| 156 | + * @return \Doctrine\Common\Collections\Collection | |
| 157 | + */ | |
| 158 | + public function getCandidatos() | |
| 159 | + { | |
| 160 | + return $this->candidatos; | |
| 161 | + } | |
| 162 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/CorreoTipoRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * CorreoTipoRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class CorreoTipoRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/CuentaBancaria.php
| ... | ... | @@ -0,0 +1,201 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\CuentaBancaria | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\CuentaBancariaRepository") | |
| 12 | + * @ORM\Table(name="cuenta_bancaria", indexes={@ORM\Index(name="fk_cuenta_bancaria_tipo_cuenta_bancaria1_idx", columns={"tipo_cuenta_bancaria_id"}), @ORM\Index(name="fk_cuenta_bancaria_banco1_idx", columns={"banco_id"}), @ORM\Index(name="fk_cuenta_bancaria_unidad_administrativa1_idx", columns={"unidad_administrativa_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_cuenta_bancaria_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class CuentaBancaria | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="cuenta_bancaria_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="string", length=45) | |
| 26 | + */ | |
| 27 | + protected $descripcion; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\OneToMany(targetEntity="Deposito", mappedBy="cuentaBancaria") | |
| 31 | + * @ORM\JoinColumn(name="id", referencedColumnName="cuenta_bancaria_id", nullable=false) | |
| 32 | + */ | |
| 33 | + protected $depositos; | |
| 34 | + | |
| 35 | + /** | |
| 36 | + * @ORM\ManyToOne(targetEntity="CuentaBancariaTipo", inversedBy="cuentaBancarias") | |
| 37 | + * @ORM\JoinColumn(name="tipo_cuenta_bancaria_id", referencedColumnName="id", nullable=false) | |
| 38 | + */ | |
| 39 | + protected $cuentaBancariaTipo; | |
| 40 | + | |
| 41 | + /** | |
| 42 | + * @ORM\ManyToOne(targetEntity="Banco", inversedBy="cuentaBancarias") | |
| 43 | + * @ORM\JoinColumn(name="banco_id", referencedColumnName="id", nullable=false) | |
| 44 | + */ | |
| 45 | + protected $banco; | |
| 46 | + | |
| 47 | + /** | |
| 48 | + * @ORM\ManyToOne(targetEntity="UnidadAdministrativa", inversedBy="cuentaBancarias") | |
| 49 | + * @ORM\JoinColumn(name="unidad_administrativa_id", referencedColumnName="id", nullable=false) | |
| 50 | + */ | |
| 51 | + protected $unidadAdministrativa; | |
| 52 | + | |
| 53 | + public function __construct() | |
| 54 | + { | |
| 55 | + $this->depositos = new ArrayCollection(); | |
| 56 | + } | |
| 57 | + | |
| 58 | + public function __sleep() | |
| 59 | + { | |
| 60 | + return array('id', 'descripcion', 'tipo_cuenta_bancaria_id', 'banco_id', 'unidad_administrativa_id'); | |
| 61 | + } | |
| 62 | + | |
| 63 | + /** | |
| 64 | + * Get id | |
| 65 | + * | |
| 66 | + * @return integer | |
| 67 | + */ | |
| 68 | + public function getId() | |
| 69 | + { | |
| 70 | + return $this->id; | |
| 71 | + } | |
| 72 | + | |
| 73 | + /** | |
| 74 | + * Set descripcion | |
| 75 | + * | |
| 76 | + * @param string $descripcion | |
| 77 | + * @return CuentaBancaria | |
| 78 | + */ | |
| 79 | + public function setDescripcion($descripcion) | |
| 80 | + { | |
| 81 | + $this->descripcion = $descripcion; | |
| 82 | + | |
| 83 | + return $this; | |
| 84 | + } | |
| 85 | + | |
| 86 | + /** | |
| 87 | + * Get descripcion | |
| 88 | + * | |
| 89 | + * @return string | |
| 90 | + */ | |
| 91 | + public function getDescripcion() | |
| 92 | + { | |
| 93 | + return $this->descripcion; | |
| 94 | + } | |
| 95 | + | |
| 96 | + /** | |
| 97 | + * Add depositos | |
| 98 | + * | |
| 99 | + * @param \UBV\SurUbvBundle\Entity\Deposito $depositos | |
| 100 | + * @return CuentaBancaria | |
| 101 | + */ | |
| 102 | + public function addDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) | |
| 103 | + { | |
| 104 | + $this->depositos[] = $depositos; | |
| 105 | + | |
| 106 | + return $this; | |
| 107 | + } | |
| 108 | + | |
| 109 | + /** | |
| 110 | + * Remove depositos | |
| 111 | + * | |
| 112 | + * @param \UBV\SurUbvBundle\Entity\Deposito $depositos | |
| 113 | + */ | |
| 114 | + public function removeDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) | |
| 115 | + { | |
| 116 | + $this->depositos->removeElement($depositos); | |
| 117 | + } | |
| 118 | + | |
| 119 | + /** | |
| 120 | + * Get depositos | |
| 121 | + * | |
| 122 | + * @return \Doctrine\Common\Collections\Collection | |
| 123 | + */ | |
| 124 | + public function getDepositos() | |
| 125 | + { | |
| 126 | + return $this->depositos; | |
| 127 | + } | |
| 128 | + | |
| 129 | + /** | |
| 130 | + * Set cuentaBancariaTipo | |
| 131 | + * | |
| 132 | + * @param \UBV\SurUbvBundle\Entity\CuentaBancariaTipo $cuentaBancariaTipo | |
| 133 | + * @return CuentaBancaria | |
| 134 | + */ | |
| 135 | + public function setCuentaBancariaTipo(\UBV\SurUbvBundle\Entity\CuentaBancariaTipo $cuentaBancariaTipo) | |
| 136 | + { | |
| 137 | + $this->cuentaBancariaTipo = $cuentaBancariaTipo; | |
| 138 | + | |
| 139 | + return $this; | |
| 140 | + } | |
| 141 | + | |
| 142 | + /** | |
| 143 | + * Get cuentaBancariaTipo | |
| 144 | + * | |
| 145 | + * @return \UBV\SurUbvBundle\Entity\CuentaBancariaTipo | |
| 146 | + */ | |
| 147 | + public function getCuentaBancariaTipo() | |
| 148 | + { | |
| 149 | + return $this->cuentaBancariaTipo; | |
| 150 | + } | |
| 151 | + | |
| 152 | + /** | |
| 153 | + * Set banco | |
| 154 | + * | |
| 155 | + * @param \UBV\SurUbvBundle\Entity\Banco $banco | |
| 156 | + * @return CuentaBancaria | |
| 157 | + */ | |
| 158 | + public function setBanco(\UBV\SurUbvBundle\Entity\Banco $banco) | |
| 159 | + { | |
| 160 | + $this->banco = $banco; | |
| 161 | + | |
| 162 | + return $this; | |
| 163 | + } | |
| 164 | + | |
| 165 | + /** | |
| 166 | + * Get banco | |
| 167 | + * | |
| 168 | + * @return \UBV\SurUbvBundle\Entity\Banco | |
| 169 | + */ | |
| 170 | + public function getBanco() | |
| 171 | + { | |
| 172 | + return $this->banco; | |
| 173 | + } | |
| 174 | + | |
| 175 | + /** | |
| 176 | + * Set unidadAdministrativa | |
| 177 | + * | |
| 178 | + * @param \UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativa | |
| 179 | + * @return CuentaBancaria | |
| 180 | + */ | |
| 181 | + public function setUnidadAdministrativa(\UBV\SurUbvBundle\Entity\UnidadAdministrativa $unidadAdministrativa) | |
| 182 | + { | |
| 183 | + $this->unidadAdministrativa = $unidadAdministrativa; | |
| 184 | + | |
| 185 | + return $this; | |
| 186 | + } | |
| 187 | + | |
| 188 | + /** | |
| 189 | + * Get unidadAdministrativa | |
| 190 | + * | |
| 191 | + * @return \UBV\SurUbvBundle\Entity\UnidadAdministrativa | |
| 192 | + */ | |
| 193 | + public function getUnidadAdministrativa() | |
| 194 | + { | |
| 195 | + return $this->unidadAdministrativa; | |
| 196 | + } | |
| 197 | + | |
| 198 | + public function __toString() { | |
| 199 | + return $this->getDescripcion(); | |
| 200 | + } | |
| 201 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/CuentaBancariaRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * CuentaBancariaRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class CuentaBancariaRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/CuentaBancariaTipo.php
| ... | ... | @@ -0,0 +1,120 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | +use Symfony\Component\Validator\Constraints as Assert; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * UBV\SurUbvBundle\Entity\CuentaBancariaTipo | |
| 11 | + * | |
| 12 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\CuentaBancariaTipoRepository") | |
| 13 | + * @ORM\Table(name="cuenta_bancaria_tipo", uniqueConstraints={@ORM\UniqueConstraint(name="id_cuenta_bancaria_tipo_UNIQUE", columns={"id"})}) | |
| 14 | + */ | |
| 15 | +class CuentaBancariaTipo | |
| 16 | +{ | |
| 17 | + /** | |
| 18 | + * @ORM\Id | |
| 19 | + * @ORM\Column(type="integer") | |
| 20 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 21 | + * @ORM\SequenceGenerator(sequenceName="cuenta_bancaria_tipo_id_seq", allocationSize=1, initialValue=1) | |
| 22 | + */ | |
| 23 | + protected $id; | |
| 24 | + | |
| 25 | + /** | |
| 26 | + * @ORM\Column(type="string", length=15) | |
| 27 | + * @Assert\NotBlank( message= "Por favor introduzca una Descripciรณn de la Cuenta Bancaria") | |
| 28 | + * @Assert\Length( | |
| 29 | + * min = 7, | |
| 30 | + * max = 70, | |
| 31 | + * minMessage = "Por favor introduzca un tipo de Cuenta valido. Mรญnimo {{ limit }} caracteres", | |
| 32 | + * maxMessage = "Por favor introduzca un tipo de Cuenta valido. Mรกximo {{ limit }} caracteres", | |
| 33 | + * | |
| 34 | + * ) | |
| 35 | + * @Assert\NotNull(message="Este Campo no puede Ser Nulo") | |
| 36 | + */ | |
| 37 | + protected $descripcion; | |
| 38 | + | |
| 39 | + /** | |
| 40 | + * @ORM\OneToMany(targetEntity="CuentaBancaria", mappedBy="cuentaBancariaTipo") | |
| 41 | + * @ORM\JoinColumn(name="id", referencedColumnName="tipo_cuenta_bancaria_id", nullable=false) | |
| 42 | + */ | |
| 43 | + protected $cuentaBancarias; | |
| 44 | + | |
| 45 | + public function __construct() | |
| 46 | + { | |
| 47 | + $this->cuentaBancarias = new ArrayCollection(); | |
| 48 | + } | |
| 49 | + | |
| 50 | + public function __sleep() | |
| 51 | + { | |
| 52 | + return array('id', 'descripcion'); | |
| 53 | + } | |
| 54 | + | |
| 55 | + /** | |
| 56 | + * Get id | |
| 57 | + * | |
| 58 | + * @return integer | |
| 59 | + */ | |
| 60 | + public function getId() | |
| 61 | + { | |
| 62 | + return $this->id; | |
| 63 | + } | |
| 64 | + | |
| 65 | + /** | |
| 66 | + * Set descripcion | |
| 67 | + * | |
| 68 | + * @param string $descripcion | |
| 69 | + * @return CuentaBancariaTipo | |
| 70 | + */ | |
| 71 | + public function setDescripcion($descripcion) | |
| 72 | + { | |
| 73 | + $this->descripcion = $descripcion; | |
| 74 | + | |
| 75 | + return $this; | |
| 76 | + } | |
| 77 | + | |
| 78 | + /** | |
| 79 | + * Get descripcion | |
| 80 | + * | |
| 81 | + * @return string | |
| 82 | + */ | |
| 83 | + public function getDescripcion() | |
| 84 | + { | |
| 85 | + return $this->descripcion; | |
| 86 | + } | |
| 87 | + | |
| 88 | + /** | |
| 89 | + * Add cuentaBancarias | |
| 90 | + * | |
| 91 | + * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias | |
| 92 | + * @return CuentaBancariaTipo | |
| 93 | + */ | |
| 94 | + public function addCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias) | |
| 95 | + { | |
| 96 | + $this->cuentaBancarias[] = $cuentaBancarias; | |
| 97 | + | |
| 98 | + return $this; | |
| 99 | + } | |
| 100 | + | |
| 101 | + /** | |
| 102 | + * Remove cuentaBancarias | |
| 103 | + * | |
| 104 | + * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias | |
| 105 | + */ | |
| 106 | + public function removeCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancarias) | |
| 107 | + { | |
| 108 | + $this->cuentaBancarias->removeElement($cuentaBancarias); | |
| 109 | + } | |
| 110 | + | |
| 111 | + /** | |
| 112 | + * Get cuentaBancarias | |
| 113 | + * | |
| 114 | + * @return \Doctrine\Common\Collections\Collection | |
| 115 | + */ | |
| 116 | + public function getCuentaBancarias() | |
| 117 | + { | |
| 118 | + return $this->cuentaBancarias; | |
| 119 | + } | |
| 120 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/CuentaBancariaTipoRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * CuentaBancariaTipoRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class CuentaBancariaTipoRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/Deposito.php
| ... | ... | @@ -0,0 +1,331 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | +use Symfony\Component\Validator\Constraints as Assert; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * UBV\SurUbvBundle\Entity\Deposito | |
| 11 | + * | |
| 12 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DepositoRepository") | |
| 13 | + * @ORM\Table(name="deposito", indexes={@ORM\Index(name="fk_deposito_cuenta_bancaria1_idx", columns={"cuenta_bancaria_id"}), @ORM\Index(name="fk_deposito_persona1_idx", columns={"persona_id"}), @ORM\Index(name="fk_deposito_deposito_tipo1_idx", columns={"deposito_tipo_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_deposito_UNIQUE", columns={"id"}), @ORM\UniqueConstraint(name="num_deposito_UNIQUE", columns={"num_deposito"})}) | |
| 14 | + */ | |
| 15 | +class Deposito | |
| 16 | +{ | |
| 17 | + /** | |
| 18 | + * @ORM\Id | |
| 19 | + * @ORM\Column(type="integer") | |
| 20 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 21 | + * @ORM\SequenceGenerator(sequenceName="deposito_id_seq", allocationSize=1, initialValue=1) | |
| 22 | + */ | |
| 23 | + protected $id; | |
| 24 | + | |
| 25 | + /** | |
| 26 | + * @Assert\NotNull(message= "Por favor introduzca un nรบmero de deposito", groups={"Default"}) | |
| 27 | + * @Assert\NotBlank( message= "Por favor introduzca un nรบmero de deposito", groups={"Default"}) | |
| 28 | + * @ORM\Column(type="integer") | |
| 29 | + */ | |
| 30 | + protected $num_deposito; | |
| 31 | + | |
| 32 | + /** | |
| 33 | + * @Assert\NotNull(message= "Por favor introduzca el monto en Bs. depositado", groups={"Default"}) | |
| 34 | + * @Assert\NotBlank( message= "Por favor introduzca el monto en Bs. depositado", groups={"Default"}) | |
| 35 | + * @ORM\Column(type="float") | |
| 36 | + */ | |
| 37 | + protected $monto; | |
| 38 | + | |
| 39 | + /** | |
| 40 | + * @ORM\ManyToOne(targetEntity="Arancel", inversedBy="depositos") | |
| 41 | + * @ORM\JoinColumn(name="arancel_id", referencedColumnName="id", nullable=false) | |
| 42 | + */ | |
| 43 | + protected $arancel; | |
| 44 | + | |
| 45 | + /** | |
| 46 | + * @ORM\Column(type="date") | |
| 47 | + */ | |
| 48 | + protected $fecha_deposito; | |
| 49 | + | |
| 50 | + /** | |
| 51 | + * @ORM\OneToMany(targetEntity="DepositoDetalle", mappedBy="deposito") | |
| 52 | + * @ORM\JoinColumn(name="id", referencedColumnName="deposito_id", nullable=false) | |
| 53 | + */ | |
| 54 | + protected $depositoDetalles; | |
| 55 | + | |
| 56 | + /** | |
| 57 | + * @ORM\ManyToOne(targetEntity="CuentaBancaria", inversedBy="depositos") | |
| 58 | + * @ORM\JoinColumn(name="cuenta_bancaria_id", referencedColumnName="id", nullable=false) | |
| 59 | + */ | |
| 60 | + protected $cuentaBancaria; | |
| 61 | + | |
| 62 | + /** | |
| 63 | + * @ORM\ManyToOne(targetEntity="Persona", inversedBy="depositos") | |
| 64 | + * @ORM\JoinColumn(name="persona_id", referencedColumnName="id", nullable=false) | |
| 65 | + */ | |
| 66 | + protected $persona; | |
| 67 | + | |
| 68 | + /** | |
| 69 | + * @ORM\ManyToOne(targetEntity="DepositoTipo", inversedBy="depositos") | |
| 70 | + * @ORM\JoinColumn(name="deposito_tipo_id", referencedColumnName="id", nullable=false) | |
| 71 | + */ | |
| 72 | + protected $depositoTipo; | |
| 73 | + | |
| 74 | + /** | |
| 75 | + * @ORM\ManyToMany(targetEntity="Arancel", inversedBy="depositos") | |
| 76 | + * @ORM\JoinTable(name="deposito_arancel", | |
| 77 | + * joinColumns={@ORM\JoinColumn(name="deposito_id", referencedColumnName="id", nullable=false)}, | |
| 78 | + * inverseJoinColumns={@ORM\JoinColumn(name="arancel_id", referencedColumnName="id", nullable=false)} | |
| 79 | + * ) | |
| 80 | + */ | |
| 81 | + protected $arancels; | |
| 82 | + | |
| 83 | + public function __construct() | |
| 84 | + { | |
| 85 | + $this->depositoDetalles = new ArrayCollection(); | |
| 86 | + $this->arancels = new ArrayCollection(); | |
| 87 | + } | |
| 88 | + | |
| 89 | + public function __sleep() | |
| 90 | + { | |
| 91 | + return array('id', 'num_deposito', 'monto', 'cuenta_bancaria_id', 'persona_id', 'fecha_deposito', 'deposito_tipo_id'); | |
| 92 | + } | |
| 93 | + | |
| 94 | + /** | |
| 95 | + * Get id | |
| 96 | + * | |
| 97 | + * @return integer | |
| 98 | + */ | |
| 99 | + public function getId() | |
| 100 | + { | |
| 101 | + return $this->id; | |
| 102 | + } | |
| 103 | + | |
| 104 | + /** | |
| 105 | + * Set num_deposito | |
| 106 | + * | |
| 107 | + * @param integer $numDeposito | |
| 108 | + * @return Deposito | |
| 109 | + */ | |
| 110 | + public function setNumDeposito($numDeposito) | |
| 111 | + { | |
| 112 | + $this->num_deposito = $numDeposito; | |
| 113 | + | |
| 114 | + return $this; | |
| 115 | + } | |
| 116 | + | |
| 117 | + /** | |
| 118 | + * Set monto | |
| 119 | + * | |
| 120 | + * @param float $monto | |
| 121 | + * @return Deposito | |
| 122 | + */ | |
| 123 | + public function setMonto($monto) | |
| 124 | + { | |
| 125 | + $this->monto = $monto; | |
| 126 | + | |
| 127 | + return $this; | |
| 128 | + } | |
| 129 | + | |
| 130 | + /** | |
| 131 | + * Get monto | |
| 132 | + * | |
| 133 | + * @return float | |
| 134 | + */ | |
| 135 | + public function getMonto() | |
| 136 | + { | |
| 137 | + return $this->monto; | |
| 138 | + } | |
| 139 | + | |
| 140 | + /** | |
| 141 | + * Set fecha_deposito | |
| 142 | + * | |
| 143 | + * @param \DateTime $fechaDeposito | |
| 144 | + * @return Deposito | |
| 145 | + */ | |
| 146 | + public function setFechaDeposito($fechaDeposito) | |
| 147 | + { | |
| 148 | + $this->fecha_deposito = $fechaDeposito; | |
| 149 | + | |
| 150 | + return $this; | |
| 151 | + } | |
| 152 | + | |
| 153 | + /** | |
| 154 | + * Get fecha_deposito | |
| 155 | + * | |
| 156 | + * @return \DateTime | |
| 157 | + */ | |
| 158 | + public function getFechaDeposito() | |
| 159 | + { | |
| 160 | + return $this->fecha_deposito; | |
| 161 | + } | |
| 162 | + | |
| 163 | + /** | |
| 164 | + * Add depositoDetalles | |
| 165 | + * | |
| 166 | + * @param \UBV\SurUbvBundle\Entity\DepositoDetalle $depositoDetalles | |
| 167 | + * @return Deposito | |
| 168 | + */ | |
| 169 | + public function addDepositoDetalle(\UBV\SurUbvBundle\Entity\DepositoDetalle $depositoDetalles) | |
| 170 | + { | |
| 171 | + $this->depositoDetalles[] = $depositoDetalles; | |
| 172 | + | |
| 173 | + return $this; | |
| 174 | + } | |
| 175 | + | |
| 176 | + /** | |
| 177 | + * Remove depositoDetalles | |
| 178 | + * | |
| 179 | + * @param \UBV\SurUbvBundle\Entity\DepositoDetalle $depositoDetalles | |
| 180 | + */ | |
| 181 | + public function removeDepositoDetalle(\UBV\SurUbvBundle\Entity\DepositoDetalle $depositoDetalles) | |
| 182 | + { | |
| 183 | + $this->depositoDetalles->removeElement($depositoDetalles); | |
| 184 | + } | |
| 185 | + | |
| 186 | + /** | |
| 187 | + * Get depositoDetalles | |
| 188 | + * | |
| 189 | + * @return \Doctrine\Common\Collections\Collection | |
| 190 | + */ | |
| 191 | + public function getDepositoDetalles() | |
| 192 | + { | |
| 193 | + return $this->depositoDetalles; | |
| 194 | + } | |
| 195 | + | |
| 196 | + /** | |
| 197 | + * Set cuentaBancaria | |
| 198 | + * | |
| 199 | + * @param \UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancaria | |
| 200 | + * @return Deposito | |
| 201 | + */ | |
| 202 | + public function setCuentaBancaria(\UBV\SurUbvBundle\Entity\CuentaBancaria $cuentaBancaria) | |
| 203 | + { | |
| 204 | + $this->cuentaBancaria = $cuentaBancaria; | |
| 205 | + | |
| 206 | + return $this; | |
| 207 | + } | |
| 208 | + | |
| 209 | + /** | |
| 210 | + * Get cuentaBancaria | |
| 211 | + * | |
| 212 | + * @return \UBV\SurUbvBundle\Entity\CuentaBancaria | |
| 213 | + */ | |
| 214 | + public function getCuentaBancaria() | |
| 215 | + { | |
| 216 | + return $this->cuentaBancaria; | |
| 217 | + } | |
| 218 | + | |
| 219 | + /** | |
| 220 | + * Set persona | |
| 221 | + * | |
| 222 | + * @param \UBV\SurUbvBundle\Entity\Persona $persona | |
| 223 | + * @return Deposito | |
| 224 | + */ | |
| 225 | + public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) | |
| 226 | + { | |
| 227 | + $this->persona = $persona; | |
| 228 | + | |
| 229 | + return $this; | |
| 230 | + } | |
| 231 | + | |
| 232 | + /** | |
| 233 | + * Get persona | |
| 234 | + * | |
| 235 | + * @return \UBV\SurUbvBundle\Entity\Persona | |
| 236 | + */ | |
| 237 | + public function getPersona() | |
| 238 | + { | |
| 239 | + return $this->persona; | |
| 240 | + } | |
| 241 | + | |
| 242 | + /** | |
| 243 | + * Set depositoTipo | |
| 244 | + * | |
| 245 | + * @param \UBV\SurUbvBundle\Entity\DepositoTipo $depositoTipo | |
| 246 | + * @return Deposito | |
| 247 | + */ | |
| 248 | + public function setDepositoTipo(\UBV\SurUbvBundle\Entity\DepositoTipo $depositoTipo) | |
| 249 | + { | |
| 250 | + $this->depositoTipo = $depositoTipo; | |
| 251 | + | |
| 252 | + return $this; | |
| 253 | + } | |
| 254 | + | |
| 255 | + /** | |
| 256 | + * Get depositoTipo | |
| 257 | + * | |
| 258 | + * @return \UBV\SurUbvBundle\Entity\DepositoTipo | |
| 259 | + */ | |
| 260 | + public function getDepositoTipo() | |
| 261 | + { | |
| 262 | + return $this->depositoTipo; | |
| 263 | + } | |
| 264 | + | |
| 265 | + /** | |
| 266 | + * Add arancels | |
| 267 | + * | |
| 268 | + * @param \UBV\SurUbvBundle\Entity\Arancel $arancels | |
| 269 | + * @return Deposito | |
| 270 | + */ | |
| 271 | + public function addArancel(\UBV\SurUbvBundle\Entity\Arancel $arancels) | |
| 272 | + { | |
| 273 | + $this->arancels[] = $arancels; | |
| 274 | + | |
| 275 | + return $this; | |
| 276 | + } | |
| 277 | + | |
| 278 | + /** | |
| 279 | + * Remove arancels | |
| 280 | + * | |
| 281 | + * @param \UBV\SurUbvBundle\Entity\Arancel $arancels | |
| 282 | + */ | |
| 283 | + public function removeArancel(\UBV\SurUbvBundle\Entity\Arancel $arancels) | |
| 284 | + { | |
| 285 | + $this->arancels->removeElement($arancels); | |
| 286 | + } | |
| 287 | + | |
| 288 | + /** | |
| 289 | + * Get arancels | |
| 290 | + * | |
| 291 | + * @return \Doctrine\Common\Collections\Collection | |
| 292 | + */ | |
| 293 | + public function getArancels() | |
| 294 | + { | |
| 295 | + return $this->arancels; | |
| 296 | + } | |
| 297 | + | |
| 298 | + /** | |
| 299 | + * Get num_deposito | |
| 300 | + * | |
| 301 | + * @return integer | |
| 302 | + */ | |
| 303 | + public function getNumDeposito() | |
| 304 | + { | |
| 305 | + return $this->num_deposito; | |
| 306 | + } | |
| 307 | + | |
| 308 | + /** | |
| 309 | + * Set arancel | |
| 310 | + * | |
| 311 | + * @param \UBV\SurUbvBundle\Entity\Arancel $arancel | |
| 312 | + * @return Deposito | |
| 313 | + */ | |
| 314 | + public function setArancel(\UBV\SurUbvBundle\Entity\Arancel $arancel) | |
| 315 | + { | |
| 316 | + $this->arancel = $arancel; | |
| 317 | + | |
| 318 | + return $this; | |
| 319 | + } | |
| 320 | + | |
| 321 | + /** | |
| 322 | + * Get arancel | |
| 323 | + * | |
| 324 | + * @return \UBV\SurUbvBundle\Entity\Arancel | |
| 325 | + */ | |
| 326 | + public function getArancel() | |
| 327 | + { | |
| 328 | + return $this->arancel; | |
| 329 | + } | |
| 330 | + | |
| 331 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DepositoDetalle.php
| ... | ... | @@ -0,0 +1,127 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * UBV\SurUbvBundle\Entity\DepositoDetalle | |
| 9 | + * | |
| 10 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DepositoDetalleRepository") | |
| 11 | + * @ORM\Table(name="deposito_detalle", indexes={@ORM\Index(name="fk_deposito_detalle_banco1_idx", columns={"banco_id"}), @ORM\Index(name="fk_deposito_detalle_deposito1_idx", columns={"deposito_id"})}) | |
| 12 | + */ | |
| 13 | +class DepositoDetalle | |
| 14 | +{ | |
| 15 | + /** | |
| 16 | + * @ORM\Id | |
| 17 | + * @ORM\Column(type="integer") | |
| 18 | + * @ORM\GeneratedValue(strategy="AUTO") | |
| 19 | + * @ORM\SequenceGenerator(sequenceName="deposito_detalle_id_seq", allocationSize=1, initialValue=1) | |
| 20 | + */ | |
| 21 | + protected $id; | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * @ORM\Column(type="string", length=45) | |
| 25 | + */ | |
| 26 | + protected $cta_bancaria_origen; | |
| 27 | + | |
| 28 | + /** | |
| 29 | + * @ORM\ManyToOne(targetEntity="Banco", inversedBy="depositoDetalles") | |
| 30 | + * @ORM\JoinColumn(name="banco_id", referencedColumnName="id", nullable=false) | |
| 31 | + */ | |
| 32 | + protected $banco; | |
| 33 | + | |
| 34 | + /** | |
| 35 | + * @ORM\ManyToOne(targetEntity="Deposito", inversedBy="depositoDetalles") | |
| 36 | + * @ORM\JoinColumn(name="deposito_id", referencedColumnName="id", nullable=false) | |
| 37 | + */ | |
| 38 | + protected $deposito; | |
| 39 | + | |
| 40 | + public function __construct() | |
| 41 | + { | |
| 42 | + } | |
| 43 | + | |
| 44 | + public function __sleep() | |
| 45 | + { | |
| 46 | + return array('id', 'cta_bancaria_origen', 'banco_id', 'deposito_id'); | |
| 47 | + } | |
| 48 | + | |
| 49 | + /** | |
| 50 | + * Get id | |
| 51 | + * | |
| 52 | + * @return integer | |
| 53 | + */ | |
| 54 | + public function getId() | |
| 55 | + { | |
| 56 | + return $this->id; | |
| 57 | + } | |
| 58 | + | |
| 59 | + /** | |
| 60 | + * Set cta_bancaria_origen | |
| 61 | + * | |
| 62 | + * @param string $ctaBancariaOrigen | |
| 63 | + * @return DepositoDetalle | |
| 64 | + */ | |
| 65 | + public function setCtaBancariaOrigen($ctaBancariaOrigen) | |
| 66 | + { | |
| 67 | + $this->cta_bancaria_origen = $ctaBancariaOrigen; | |
| 68 | + | |
| 69 | + return $this; | |
| 70 | + } | |
| 71 | + | |
| 72 | + /** | |
| 73 | + * Get cta_bancaria_origen | |
| 74 | + * | |
| 75 | + * @return string | |
| 76 | + */ | |
| 77 | + public function getCtaBancariaOrigen() | |
| 78 | + { | |
| 79 | + return $this->cta_bancaria_origen; | |
| 80 | + } | |
| 81 | + | |
| 82 | + /** | |
| 83 | + * Set banco | |
| 84 | + * | |
| 85 | + * @param \UBV\SurUbvBundle\Entity\Banco $banco | |
| 86 | + * @return DepositoDetalle | |
| 87 | + */ | |
| 88 | + public function setBanco(\UBV\SurUbvBundle\Entity\Banco $banco) | |
| 89 | + { | |
| 90 | + $this->banco = $banco; | |
| 91 | + | |
| 92 | + return $this; | |
| 93 | + } | |
| 94 | + | |
| 95 | + /** | |
| 96 | + * Get banco | |
| 97 | + * | |
| 98 | + * @return \UBV\SurUbvBundle\Entity\Banco | |
| 99 | + */ | |
| 100 | + public function getBanco() | |
| 101 | + { | |
| 102 | + return $this->banco; | |
| 103 | + } | |
| 104 | + | |
| 105 | + /** | |
| 106 | + * Set deposito | |
| 107 | + * | |
| 108 | + * @param \UBV\SurUbvBundle\Entity\Deposito $deposito | |
| 109 | + * @return DepositoDetalle | |
| 110 | + */ | |
| 111 | + public function setDeposito(\UBV\SurUbvBundle\Entity\Deposito $deposito) | |
| 112 | + { | |
| 113 | + $this->deposito = $deposito; | |
| 114 | + | |
| 115 | + return $this; | |
| 116 | + } | |
| 117 | + | |
| 118 | + /** | |
| 119 | + * Get deposito | |
| 120 | + * | |
| 121 | + * @return \UBV\SurUbvBundle\Entity\Deposito | |
| 122 | + */ | |
| 123 | + public function getDeposito() | |
| 124 | + { | |
| 125 | + return $this->deposito; | |
| 126 | + } | |
| 127 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DepositoDetalleRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * DepositoDetalleRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class DepositoDetalleRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DepositoRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * DepositoRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class DepositoRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DepositoTipo.php
| ... | ... | @@ -0,0 +1,142 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\DepositoTipo | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DepositoTipoRepository") | |
| 12 | + * @ORM\Table(name="deposito_tipo") | |
| 13 | + */ | |
| 14 | +class DepositoTipo | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="deposito_tipo_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="string", length=45) | |
| 26 | + */ | |
| 27 | + protected $descripcion; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\Column(type="boolean") | |
| 31 | + */ | |
| 32 | + protected $estatus; | |
| 33 | + | |
| 34 | + /** | |
| 35 | + * @ORM\OneToMany(targetEntity="Deposito", mappedBy="depositoTipo") | |
| 36 | + * @ORM\JoinColumn(name="id", referencedColumnName="deposito_tipo_id", nullable=false) | |
| 37 | + */ | |
| 38 | + protected $depositos; | |
| 39 | + | |
| 40 | + public function __construct() | |
| 41 | + { | |
| 42 | + $this->depositos = new ArrayCollection(); | |
| 43 | + } | |
| 44 | + | |
| 45 | + public function __sleep() | |
| 46 | + { | |
| 47 | + return array('id', 'descripcion', 'estatus'); | |
| 48 | + } | |
| 49 | + | |
| 50 | + /** | |
| 51 | + * Get id | |
| 52 | + * | |
| 53 | + * @return integer | |
| 54 | + */ | |
| 55 | + public function getId() | |
| 56 | + { | |
| 57 | + return $this->id; | |
| 58 | + } | |
| 59 | + | |
| 60 | + /** | |
| 61 | + * Set descripcion | |
| 62 | + * | |
| 63 | + * @param string $descripcion | |
| 64 | + * @return DepositoTipo | |
| 65 | + */ | |
| 66 | + public function setDescripcion($descripcion) | |
| 67 | + { | |
| 68 | + $this->descripcion = $descripcion; | |
| 69 | + | |
| 70 | + return $this; | |
| 71 | + } | |
| 72 | + | |
| 73 | + /** | |
| 74 | + * Get descripcion | |
| 75 | + * | |
| 76 | + * @return string | |
| 77 | + */ | |
| 78 | + public function getDescripcion() | |
| 79 | + { | |
| 80 | + return $this->descripcion; | |
| 81 | + } | |
| 82 | + | |
| 83 | + /** | |
| 84 | + * Set estatus | |
| 85 | + * | |
| 86 | + * @param boolean $estatus | |
| 87 | + * @return DepositoTipo | |
| 88 | + */ | |
| 89 | + public function setEstatus($estatus) | |
| 90 | + { | |
| 91 | + $this->estatus = $estatus; | |
| 92 | + | |
| 93 | + return $this; | |
| 94 | + } | |
| 95 | + | |
| 96 | + /** | |
| 97 | + * Get estatus | |
| 98 | + * | |
| 99 | + * @return boolean | |
| 100 | + */ | |
| 101 | + public function getEstatus() | |
| 102 | + { | |
| 103 | + return $this->estatus; | |
| 104 | + } | |
| 105 | + | |
| 106 | + /** | |
| 107 | + * Add depositos | |
| 108 | + * | |
| 109 | + * @param \UBV\SurUbvBundle\Entity\Deposito $depositos | |
| 110 | + * @return DepositoTipo | |
| 111 | + */ | |
| 112 | + public function addDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) | |
| 113 | + { | |
| 114 | + $this->depositos[] = $depositos; | |
| 115 | + | |
| 116 | + return $this; | |
| 117 | + } | |
| 118 | + | |
| 119 | + /** | |
| 120 | + * Remove depositos | |
| 121 | + * | |
| 122 | + * @param \UBV\SurUbvBundle\Entity\Deposito $depositos | |
| 123 | + */ | |
| 124 | + public function removeDeposito(\UBV\SurUbvBundle\Entity\Deposito $depositos) | |
| 125 | + { | |
| 126 | + $this->depositos->removeElement($depositos); | |
| 127 | + } | |
| 128 | + | |
| 129 | + /** | |
| 130 | + * Get depositos | |
| 131 | + * | |
| 132 | + * @return \Doctrine\Common\Collections\Collection | |
| 133 | + */ | |
| 134 | + public function getDepositos() | |
| 135 | + { | |
| 136 | + return $this->depositos; | |
| 137 | + } | |
| 138 | + | |
| 139 | + public function __toString() { | |
| 140 | + return $this->getDescripcion(); | |
| 141 | + } | |
| 142 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DepositoTipoRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * DepositoTipoRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class DepositoTipoRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DiaSemana.php
| ... | ... | @@ -0,0 +1,110 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\DiaSemana | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DiaSemanaRepository") | |
| 12 | + * @ORM\Table(name="dia_semana", uniqueConstraints={@ORM\UniqueConstraint(name="id_dia_semana_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class DiaSemana | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="dia_semana_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="string", length=10) | |
| 26 | + */ | |
| 27 | + protected $descripcion; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\OneToMany(targetEntity="Horario", mappedBy="diaSemana") | |
| 31 | + * @ORM\JoinColumn(name="id", referencedColumnName="dia_semana_id", nullable=false) | |
| 32 | + */ | |
| 33 | + protected $horarios; | |
| 34 | + | |
| 35 | + public function __construct() | |
| 36 | + { | |
| 37 | + $this->horarios = new ArrayCollection(); | |
| 38 | + } | |
| 39 | + | |
| 40 | + public function __sleep() | |
| 41 | + { | |
| 42 | + return array('id', 'descripcion'); | |
| 43 | + } | |
| 44 | + | |
| 45 | + /** | |
| 46 | + * Get id | |
| 47 | + * | |
| 48 | + * @return integer | |
| 49 | + */ | |
| 50 | + public function getId() | |
| 51 | + { | |
| 52 | + return $this->id; | |
| 53 | + } | |
| 54 | + | |
| 55 | + /** | |
| 56 | + * Set descripcion | |
| 57 | + * | |
| 58 | + * @param string $descripcion | |
| 59 | + * @return DiaSemana | |
| 60 | + */ | |
| 61 | + public function setDescripcion($descripcion) | |
| 62 | + { | |
| 63 | + $this->descripcion = $descripcion; | |
| 64 | + | |
| 65 | + return $this; | |
| 66 | + } | |
| 67 | + | |
| 68 | + /** | |
| 69 | + * Get descripcion | |
| 70 | + * | |
| 71 | + * @return string | |
| 72 | + */ | |
| 73 | + public function getDescripcion() | |
| 74 | + { | |
| 75 | + return $this->descripcion; | |
| 76 | + } | |
| 77 | + | |
| 78 | + /** | |
| 79 | + * Add horarios | |
| 80 | + * | |
| 81 | + * @param \UBV\SurUbvBundle\Entity\Horario $horarios | |
| 82 | + * @return DiaSemana | |
| 83 | + */ | |
| 84 | + public function addHorario(\UBV\SurUbvBundle\Entity\Horario $horarios) | |
| 85 | + { | |
| 86 | + $this->horarios[] = $horarios; | |
| 87 | + | |
| 88 | + return $this; | |
| 89 | + } | |
| 90 | + | |
| 91 | + /** | |
| 92 | + * Remove horarios | |
| 93 | + * | |
| 94 | + * @param \UBV\SurUbvBundle\Entity\Horario $horarios | |
| 95 | + */ | |
| 96 | + public function removeHorario(\UBV\SurUbvBundle\Entity\Horario $horarios) | |
| 97 | + { | |
| 98 | + $this->horarios->removeElement($horarios); | |
| 99 | + } | |
| 100 | + | |
| 101 | + /** | |
| 102 | + * Get horarios | |
| 103 | + * | |
| 104 | + * @return \Doctrine\Common\Collections\Collection | |
| 105 | + */ | |
| 106 | + public function getHorarios() | |
| 107 | + { | |
| 108 | + return $this->horarios; | |
| 109 | + } | |
| 110 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DiaSemanaRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * DiaSemanaRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class DiaSemanaRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/Discapacidad.php
| ... | ... | @@ -0,0 +1,150 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\Discapacidad | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DiscapacidadRepository") | |
| 12 | + * @ORM\Table(name="discapacidad", uniqueConstraints={@ORM\UniqueConstraint(name="id_discapacidad_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class Discapacidad | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="discapacidad_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="string", length=60) | |
| 26 | + */ | |
| 27 | + protected $descripcion; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\OneToMany(targetEntity="PersonaDiscapacidad", mappedBy="discapacidad") | |
| 31 | + * @ORM\JoinColumn(name="id", referencedColumnName="discapacidad_id", nullable=false) | |
| 32 | + */ | |
| 33 | + protected $personaDiscapacidads; | |
| 34 | + | |
| 35 | + /** | |
| 36 | + * @ORM\OneToMany(targetEntity="Candidato", mappedBy="discapacidad") | |
| 37 | + * @ORM\JoinColumn(name="id", referencedColumnName="discapacidad_id", nullable=false) | |
| 38 | + */ | |
| 39 | + protected $candidatos; | |
| 40 | + | |
| 41 | + public function __construct() | |
| 42 | + { | |
| 43 | + $this->personaDiscapacidads = new ArrayCollection(); | |
| 44 | + $this->candidatos = new ArrayCollection(); | |
| 45 | + } | |
| 46 | + | |
| 47 | + public function __sleep() | |
| 48 | + { | |
| 49 | + return array('id', 'descripcion'); | |
| 50 | + } | |
| 51 | + | |
| 52 | + /** | |
| 53 | + * Get id | |
| 54 | + * | |
| 55 | + * @return integer | |
| 56 | + */ | |
| 57 | + public function getId() | |
| 58 | + { | |
| 59 | + return $this->id; | |
| 60 | + } | |
| 61 | + | |
| 62 | + /** | |
| 63 | + * Set descripcion | |
| 64 | + * | |
| 65 | + * @param string $descripcion | |
| 66 | + * @return Discapacidad | |
| 67 | + */ | |
| 68 | + public function setDescripcion($descripcion) | |
| 69 | + { | |
| 70 | + $this->descripcion = $descripcion; | |
| 71 | + | |
| 72 | + return $this; | |
| 73 | + } | |
| 74 | + | |
| 75 | + /** | |
| 76 | + * Get descripcion | |
| 77 | + * | |
| 78 | + * @return string | |
| 79 | + */ | |
| 80 | + public function getDescripcion() | |
| 81 | + { | |
| 82 | + return $this->descripcion; | |
| 83 | + } | |
| 84 | + | |
| 85 | + /** | |
| 86 | + * Add personaDiscapacidads | |
| 87 | + * | |
| 88 | + * @param \UBV\SurUbvBundle\Entity\PersonaDiscapacidad $personaDiscapacidads | |
| 89 | + * @return Discapacidad | |
| 90 | + */ | |
| 91 | + public function addPersonaDiscapacidad(\UBV\SurUbvBundle\Entity\PersonaDiscapacidad $personaDiscapacidads) | |
| 92 | + { | |
| 93 | + $this->personaDiscapacidads[] = $personaDiscapacidads; | |
| 94 | + | |
| 95 | + return $this; | |
| 96 | + } | |
| 97 | + | |
| 98 | + /** | |
| 99 | + * Remove personaDiscapacidads | |
| 100 | + * | |
| 101 | + * @param \UBV\SurUbvBundle\Entity\PersonaDiscapacidad $personaDiscapacidads | |
| 102 | + */ | |
| 103 | + public function removePersonaDiscapacidad(\UBV\SurUbvBundle\Entity\PersonaDiscapacidad $personaDiscapacidads) | |
| 104 | + { | |
| 105 | + $this->personaDiscapacidads->removeElement($personaDiscapacidads); | |
| 106 | + } | |
| 107 | + | |
| 108 | + /** | |
| 109 | + * Get personaDiscapacidads | |
| 110 | + * | |
| 111 | + * @return \Doctrine\Common\Collections\Collection | |
| 112 | + */ | |
| 113 | + public function getPersonaDiscapacidads() | |
| 114 | + { | |
| 115 | + return $this->personaDiscapacidads; | |
| 116 | + } | |
| 117 | + | |
| 118 | + /** | |
| 119 | + * Add candidatos | |
| 120 | + * | |
| 121 | + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
| 122 | + * @return Discapacidad | |
| 123 | + */ | |
| 124 | + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
| 125 | + { | |
| 126 | + $this->candidatos[] = $candidatos; | |
| 127 | + | |
| 128 | + return $this; | |
| 129 | + } | |
| 130 | + | |
| 131 | + /** | |
| 132 | + * Remove candidatos | |
| 133 | + * | |
| 134 | + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
| 135 | + */ | |
| 136 | + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
| 137 | + { | |
| 138 | + $this->candidatos->removeElement($candidatos); | |
| 139 | + } | |
| 140 | + | |
| 141 | + /** | |
| 142 | + * Get candidatos | |
| 143 | + * | |
| 144 | + * @return \Doctrine\Common\Collections\Collection | |
| 145 | + */ | |
| 146 | + public function getCandidatos() | |
| 147 | + { | |
| 148 | + return $this->candidatos; | |
| 149 | + } | |
| 150 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DiscapacidadRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * DiscapacidadRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class DiscapacidadRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/Docente.php
| ... | ... | @@ -0,0 +1,336 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\Docente | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DocenteRepository") | |
| 12 | + * @ORM\Table(name="docente", indexes={@ORM\Index(name="fk_docente_programa1_idx", columns={"programa_id"}), @ORM\Index(name="fk_docente_centro_estudio1_idx", columns={"centro_estudio_id"}), @ORM\Index(name="fk_docente_persona1_idx", columns={"persona_id"}), @ORM\Index(name="fk_docente_eje_regional1_idx", columns={"eje_regional_id"}), @ORM\Index(name="fk_docente_dedicacion1_idx", columns={"dedicacion_id"}), @ORM\Index(name="fk_docente_docente_estatus1_idx", columns={"docente_estatus_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_docente_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class Docente | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="docente_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\OneToMany(targetEntity="CargaAcademica", mappedBy="docente") | |
| 26 | + * @ORM\JoinColumn(name="id", referencedColumnName="docente_id", nullable=false) | |
| 27 | + */ | |
| 28 | + protected $cargaAcademicas; | |
| 29 | + | |
| 30 | + /** | |
| 31 | + * @ORM\OneToMany(targetEntity="ComitepfaIntegrante", mappedBy="docente") | |
| 32 | + * @ORM\JoinColumn(name="id", referencedColumnName="docente_id", nullable=false) | |
| 33 | + */ | |
| 34 | + protected $comitepfaIntegrantes; | |
| 35 | + | |
| 36 | + /** | |
| 37 | + * @ORM\OneToMany(targetEntity="DocenteAldea", mappedBy="docente") | |
| 38 | + * @ORM\JoinColumn(name="id", referencedColumnName="docente_id", nullable=false) | |
| 39 | + */ | |
| 40 | + protected $docenteAldeas; | |
| 41 | + | |
| 42 | + /** | |
| 43 | + * @ORM\ManyToOne(targetEntity="Programa", inversedBy="docentes") | |
| 44 | + * @ORM\JoinColumn(name="programa_id", referencedColumnName="id", nullable=false) | |
| 45 | + */ | |
| 46 | + protected $programa; | |
| 47 | + | |
| 48 | + /** | |
| 49 | + * @ORM\ManyToOne(targetEntity="CentroEstudio", inversedBy="docentes") | |
| 50 | + * @ORM\JoinColumn(name="centro_estudio_id", referencedColumnName="id", nullable=false) | |
| 51 | + */ | |
| 52 | + protected $centroEstudio; | |
| 53 | + | |
| 54 | + /** | |
| 55 | + * @ORM\OneToOne(targetEntity="Persona", inversedBy="docente") | |
| 56 | + * @ORM\JoinColumn(name="persona_id", referencedColumnName="id", nullable=false) | |
| 57 | + */ | |
| 58 | + protected $persona; | |
| 59 | + | |
| 60 | + /** | |
| 61 | + * @ORM\OneToOne(targetEntity="EjeRegional", inversedBy="docente") | |
| 62 | + * @ORM\JoinColumn(name="eje_regional_id", referencedColumnName="id", nullable=false) | |
| 63 | + */ | |
| 64 | + protected $ejeRegional; | |
| 65 | + | |
| 66 | + /** | |
| 67 | + * @ORM\ManyToOne(targetEntity="DocenteDedicacion", inversedBy="docentes") | |
| 68 | + * @ORM\JoinColumn(name="dedicacion_id", referencedColumnName="id", nullable=false) | |
| 69 | + */ | |
| 70 | + protected $docenteDedicacion; | |
| 71 | + | |
| 72 | + /** | |
| 73 | + * @ORM\ManyToOne(targetEntity="DocenteEstatus", inversedBy="docentes") | |
| 74 | + * @ORM\JoinColumn(name="docente_estatus_id", referencedColumnName="id", nullable=false) | |
| 75 | + */ | |
| 76 | + protected $docenteEstatus; | |
| 77 | + | |
| 78 | + public function __construct() | |
| 79 | + { | |
| 80 | + $this->cargaAcademicas = new ArrayCollection(); | |
| 81 | + $this->comitepfaIntegrantes = new ArrayCollection(); | |
| 82 | + $this->docenteAldeas = new ArrayCollection(); | |
| 83 | + } | |
| 84 | + | |
| 85 | + public function __sleep() | |
| 86 | + { | |
| 87 | + return array('id', 'programa_id', 'centro_estudio_id', 'persona_id', 'eje_regional_id', 'dedicacion_id', 'docente_estatus_id'); | |
| 88 | + } | |
| 89 | + | |
| 90 | + /** | |
| 91 | + * Get id | |
| 92 | + * | |
| 93 | + * @return integer | |
| 94 | + */ | |
| 95 | + public function getId() | |
| 96 | + { | |
| 97 | + return $this->id; | |
| 98 | + } | |
| 99 | + | |
| 100 | + /** | |
| 101 | + * Add cargaAcademicas | |
| 102 | + * | |
| 103 | + * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas | |
| 104 | + * @return Docente | |
| 105 | + */ | |
| 106 | + public function addCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas) | |
| 107 | + { | |
| 108 | + $this->cargaAcademicas[] = $cargaAcademicas; | |
| 109 | + | |
| 110 | + return $this; | |
| 111 | + } | |
| 112 | + | |
| 113 | + /** | |
| 114 | + * Remove cargaAcademicas | |
| 115 | + * | |
| 116 | + * @param \UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas | |
| 117 | + */ | |
| 118 | + public function removeCargaAcademica(\UBV\SurUbvBundle\Entity\CargaAcademica $cargaAcademicas) | |
| 119 | + { | |
| 120 | + $this->cargaAcademicas->removeElement($cargaAcademicas); | |
| 121 | + } | |
| 122 | + | |
| 123 | + /** | |
| 124 | + * Get cargaAcademicas | |
| 125 | + * | |
| 126 | + * @return \Doctrine\Common\Collections\Collection | |
| 127 | + */ | |
| 128 | + public function getCargaAcademicas() | |
| 129 | + { | |
| 130 | + return $this->cargaAcademicas; | |
| 131 | + } | |
| 132 | + | |
| 133 | + /** | |
| 134 | + * Add comitepfaIntegrantes | |
| 135 | + * | |
| 136 | + * @param \UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes | |
| 137 | + * @return Docente | |
| 138 | + */ | |
| 139 | + public function addComitepfaIntegrante(\UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes) | |
| 140 | + { | |
| 141 | + $this->comitepfaIntegrantes[] = $comitepfaIntegrantes; | |
| 142 | + | |
| 143 | + return $this; | |
| 144 | + } | |
| 145 | + | |
| 146 | + /** | |
| 147 | + * Remove comitepfaIntegrantes | |
| 148 | + * | |
| 149 | + * @param \UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes | |
| 150 | + */ | |
| 151 | + public function removeComitepfaIntegrante(\UBV\SurUbvBundle\Entity\ComitepfaIntegrante $comitepfaIntegrantes) | |
| 152 | + { | |
| 153 | + $this->comitepfaIntegrantes->removeElement($comitepfaIntegrantes); | |
| 154 | + } | |
| 155 | + | |
| 156 | + /** | |
| 157 | + * Get comitepfaIntegrantes | |
| 158 | + * | |
| 159 | + * @return \Doctrine\Common\Collections\Collection | |
| 160 | + */ | |
| 161 | + public function getComitepfaIntegrantes() | |
| 162 | + { | |
| 163 | + return $this->comitepfaIntegrantes; | |
| 164 | + } | |
| 165 | + | |
| 166 | + /** | |
| 167 | + * Add docenteAldeas | |
| 168 | + * | |
| 169 | + * @param \UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas | |
| 170 | + * @return Docente | |
| 171 | + */ | |
| 172 | + public function addDocenteAldea(\UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas) | |
| 173 | + { | |
| 174 | + $this->docenteAldeas[] = $docenteAldeas; | |
| 175 | + | |
| 176 | + return $this; | |
| 177 | + } | |
| 178 | + | |
| 179 | + /** | |
| 180 | + * Remove docenteAldeas | |
| 181 | + * | |
| 182 | + * @param \UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas | |
| 183 | + */ | |
| 184 | + public function removeDocenteAldea(\UBV\SurUbvBundle\Entity\DocenteAldea $docenteAldeas) | |
| 185 | + { | |
| 186 | + $this->docenteAldeas->removeElement($docenteAldeas); | |
| 187 | + } | |
| 188 | + | |
| 189 | + /** | |
| 190 | + * Get docenteAldeas | |
| 191 | + * | |
| 192 | + * @return \Doctrine\Common\Collections\Collection | |
| 193 | + */ | |
| 194 | + public function getDocenteAldeas() | |
| 195 | + { | |
| 196 | + return $this->docenteAldeas; | |
| 197 | + } | |
| 198 | + | |
| 199 | + /** | |
| 200 | + * Set programa | |
| 201 | + * | |
| 202 | + * @param \UBV\SurUbvBundle\Entity\Programa $programa | |
| 203 | + * @return Docente | |
| 204 | + */ | |
| 205 | + public function setPrograma(\UBV\SurUbvBundle\Entity\Programa $programa) | |
| 206 | + { | |
| 207 | + $this->programa = $programa; | |
| 208 | + | |
| 209 | + return $this; | |
| 210 | + } | |
| 211 | + | |
| 212 | + /** | |
| 213 | + * Get programa | |
| 214 | + * | |
| 215 | + * @return \UBV\SurUbvBundle\Entity\Programa | |
| 216 | + */ | |
| 217 | + public function getPrograma() | |
| 218 | + { | |
| 219 | + return $this->programa; | |
| 220 | + } | |
| 221 | + | |
| 222 | + /** | |
| 223 | + * Set centroEstudio | |
| 224 | + * | |
| 225 | + * @param \UBV\SurUbvBundle\Entity\CentroEstudio $centroEstudio | |
| 226 | + * @return Docente | |
| 227 | + */ | |
| 228 | + public function setCentroEstudio(\UBV\SurUbvBundle\Entity\CentroEstudio $centroEstudio) | |
| 229 | + { | |
| 230 | + $this->centroEstudio = $centroEstudio; | |
| 231 | + | |
| 232 | + return $this; | |
| 233 | + } | |
| 234 | + | |
| 235 | + /** | |
| 236 | + * Get centroEstudio | |
| 237 | + * | |
| 238 | + * @return \UBV\SurUbvBundle\Entity\CentroEstudio | |
| 239 | + */ | |
| 240 | + public function getCentroEstudio() | |
| 241 | + { | |
| 242 | + return $this->centroEstudio; | |
| 243 | + } | |
| 244 | + | |
| 245 | + /** | |
| 246 | + * Set persona | |
| 247 | + * | |
| 248 | + * @param \UBV\SurUbvBundle\Entity\Persona $persona | |
| 249 | + * @return Docente | |
| 250 | + */ | |
| 251 | + public function setPersona(\UBV\SurUbvBundle\Entity\Persona $persona) | |
| 252 | + { | |
| 253 | + $this->persona = $persona; | |
| 254 | + | |
| 255 | + return $this; | |
| 256 | + } | |
| 257 | + | |
| 258 | + /** | |
| 259 | + * Get persona | |
| 260 | + * | |
| 261 | + * @return \UBV\SurUbvBundle\Entity\Persona | |
| 262 | + */ | |
| 263 | + public function getPersona() | |
| 264 | + { | |
| 265 | + return $this->persona; | |
| 266 | + } | |
| 267 | + | |
| 268 | + /** | |
| 269 | + * Set ejeRegional | |
| 270 | + * | |
| 271 | + * @param \UBV\SurUbvBundle\Entity\EjeRegional $ejeRegional | |
| 272 | + * @return Docente | |
| 273 | + */ | |
| 274 | + public function setEjeRegional(\UBV\SurUbvBundle\Entity\EjeRegional $ejeRegional) | |
| 275 | + { | |
| 276 | + $this->ejeRegional = $ejeRegional; | |
| 277 | + | |
| 278 | + return $this; | |
| 279 | + } | |
| 280 | + | |
| 281 | + /** | |
| 282 | + * Get ejeRegional | |
| 283 | + * | |
| 284 | + * @return \UBV\SurUbvBundle\Entity\EjeRegional | |
| 285 | + */ | |
| 286 | + public function getEjeRegional() | |
| 287 | + { | |
| 288 | + return $this->ejeRegional; | |
| 289 | + } | |
| 290 | + | |
| 291 | + /** | |
| 292 | + * Set docenteDedicacion | |
| 293 | + * | |
| 294 | + * @param \UBV\SurUbvBundle\Entity\DocenteDedicacion $docenteDedicacion | |
| 295 | + * @return Docente | |
| 296 | + */ | |
| 297 | + public function setDocenteDedicacion(\UBV\SurUbvBundle\Entity\DocenteDedicacion $docenteDedicacion) | |
| 298 | + { | |
| 299 | + $this->docenteDedicacion = $docenteDedicacion; | |
| 300 | + | |
| 301 | + return $this; | |
| 302 | + } | |
| 303 | + | |
| 304 | + /** | |
| 305 | + * Get docenteDedicacion | |
| 306 | + * | |
| 307 | + * @return \UBV\SurUbvBundle\Entity\DocenteDedicacion | |
| 308 | + */ | |
| 309 | + public function getDocenteDedicacion() | |
| 310 | + { | |
| 311 | + return $this->docenteDedicacion; | |
| 312 | + } | |
| 313 | + | |
| 314 | + /** | |
| 315 | + * Set docenteEstatus | |
| 316 | + * | |
| 317 | + * @param \UBV\SurUbvBundle\Entity\DocenteEstatus $docenteEstatus | |
| 318 | + * @return Docente | |
| 319 | + */ | |
| 320 | + public function setDocenteEstatus(\UBV\SurUbvBundle\Entity\DocenteEstatus $docenteEstatus) | |
| 321 | + { | |
| 322 | + $this->docenteEstatus = $docenteEstatus; | |
| 323 | + | |
| 324 | + return $this; | |
| 325 | + } | |
| 326 | + | |
| 327 | + /** | |
| 328 | + * Get docenteEstatus | |
| 329 | + * | |
| 330 | + * @return \UBV\SurUbvBundle\Entity\DocenteEstatus | |
| 331 | + */ | |
| 332 | + public function getDocenteEstatus() | |
| 333 | + { | |
| 334 | + return $this->docenteEstatus; | |
| 335 | + } | |
| 336 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DocenteAldea.php
| ... | ... | @@ -0,0 +1,99 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * UBV\SurUbvBundle\Entity\DocenteAldea | |
| 9 | + * | |
| 10 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DocenteAldeaRepository") | |
| 11 | + * @ORM\Table(name="docente_aldea", indexes={@ORM\Index(name="fk_docente_aldea_docente1_idx", columns={"docente_id"}), @ORM\Index(name="fk_docente_aldea_aldea1_idx", columns={"aldea_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_docente_aldea_UNIQUE", columns={"id"})}) | |
| 12 | + */ | |
| 13 | +class DocenteAldea | |
| 14 | +{ | |
| 15 | + /** | |
| 16 | + * @ORM\Id | |
| 17 | + * @ORM\Column(type="integer") | |
| 18 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 19 | + * @ORM\SequenceGenerator(sequenceName="docente_aldea_id_seq", allocationSize=1, initialValue=1) | |
| 20 | + */ | |
| 21 | + protected $id; | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * @ORM\ManyToOne(targetEntity="Docente", inversedBy="docenteAldeas") | |
| 25 | + * @ORM\JoinColumn(name="docente_id", referencedColumnName="id", nullable=false) | |
| 26 | + */ | |
| 27 | + protected $docente; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\ManyToOne(targetEntity="Aldea", inversedBy="docenteAldeas") | |
| 31 | + * @ORM\JoinColumn(name="aldea_id", referencedColumnName="id", nullable=false) | |
| 32 | + */ | |
| 33 | + protected $aldea; | |
| 34 | + | |
| 35 | + public function __construct() | |
| 36 | + { | |
| 37 | + } | |
| 38 | + | |
| 39 | + public function __sleep() | |
| 40 | + { | |
| 41 | + return array('id', 'docente_id', 'aldea_id'); | |
| 42 | + } | |
| 43 | + | |
| 44 | + /** | |
| 45 | + * Get id | |
| 46 | + * | |
| 47 | + * @return integer | |
| 48 | + */ | |
| 49 | + public function getId() | |
| 50 | + { | |
| 51 | + return $this->id; | |
| 52 | + } | |
| 53 | + | |
| 54 | + /** | |
| 55 | + * Set docente | |
| 56 | + * | |
| 57 | + * @param \UBV\SurUbvBundle\Entity\Docente $docente | |
| 58 | + * @return DocenteAldea | |
| 59 | + */ | |
| 60 | + public function setDocente(\UBV\SurUbvBundle\Entity\Docente $docente) | |
| 61 | + { | |
| 62 | + $this->docente = $docente; | |
| 63 | + | |
| 64 | + return $this; | |
| 65 | + } | |
| 66 | + | |
| 67 | + /** | |
| 68 | + * Get docente | |
| 69 | + * | |
| 70 | + * @return \UBV\SurUbvBundle\Entity\Docente | |
| 71 | + */ | |
| 72 | + public function getDocente() | |
| 73 | + { | |
| 74 | + return $this->docente; | |
| 75 | + } | |
| 76 | + | |
| 77 | + /** | |
| 78 | + * Set aldea | |
| 79 | + * | |
| 80 | + * @param \UBV\SurUbvBundle\Entity\Aldea $aldea | |
| 81 | + * @return DocenteAldea | |
| 82 | + */ | |
| 83 | + public function setAldea(\UBV\SurUbvBundle\Entity\Aldea $aldea) | |
| 84 | + { | |
| 85 | + $this->aldea = $aldea; | |
| 86 | + | |
| 87 | + return $this; | |
| 88 | + } | |
| 89 | + | |
| 90 | + /** | |
| 91 | + * Get aldea | |
| 92 | + * | |
| 93 | + * @return \UBV\SurUbvBundle\Entity\Aldea | |
| 94 | + */ | |
| 95 | + public function getAldea() | |
| 96 | + { | |
| 97 | + return $this->aldea; | |
| 98 | + } | |
| 99 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DocenteAldeaRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * DocenteAldeaRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class DocenteAldeaRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DocenteDedicacion.php
| ... | ... | @@ -0,0 +1,194 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\DocenteDedicacion | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DocenteDedicacionRepository") | |
| 12 | + * @ORM\Table(name="docente_dedicacion", uniqueConstraints={@ORM\UniqueConstraint(name="id_docente_dedicacion_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class DocenteDedicacion | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="docente_dedicacion_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="string", length=45) | |
| 26 | + */ | |
| 27 | + protected $descripcion; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\Column(type="integer") | |
| 31 | + */ | |
| 32 | + protected $total_horas; | |
| 33 | + | |
| 34 | + /** | |
| 35 | + * @ORM\Column(type="integer") | |
| 36 | + */ | |
| 37 | + protected $hora_docencia_minima; | |
| 38 | + | |
| 39 | + /** | |
| 40 | + * @ORM\Column(type="integer") | |
| 41 | + */ | |
| 42 | + protected $hora_docencia_maxima; | |
| 43 | + | |
| 44 | + /** | |
| 45 | + * @ORM\OneToMany(targetEntity="Docente", mappedBy="docenteDedicacion") | |
| 46 | + * @ORM\JoinColumn(name="id", referencedColumnName="dedicacion_id", nullable=false) | |
| 47 | + */ | |
| 48 | + protected $docentes; | |
| 49 | + | |
| 50 | + public function __construct() | |
| 51 | + { | |
| 52 | + $this->docentes = new ArrayCollection(); | |
| 53 | + } | |
| 54 | + | |
| 55 | + public function __sleep() | |
| 56 | + { | |
| 57 | + return array('id', 'descripcion', 'total_horas', 'hora_docencia_minima', 'hora_docencia_maxima'); | |
| 58 | + } | |
| 59 | + | |
| 60 | + /** | |
| 61 | + * Get id | |
| 62 | + * | |
| 63 | + * @return integer | |
| 64 | + */ | |
| 65 | + public function getId() | |
| 66 | + { | |
| 67 | + return $this->id; | |
| 68 | + } | |
| 69 | + | |
| 70 | + /** | |
| 71 | + * Set descripcion | |
| 72 | + * | |
| 73 | + * @param string $descripcion | |
| 74 | + * @return DocenteDedicacion | |
| 75 | + */ | |
| 76 | + public function setDescripcion($descripcion) | |
| 77 | + { | |
| 78 | + $this->descripcion = $descripcion; | |
| 79 | + | |
| 80 | + return $this; | |
| 81 | + } | |
| 82 | + | |
| 83 | + /** | |
| 84 | + * Get descripcion | |
| 85 | + * | |
| 86 | + * @return string | |
| 87 | + */ | |
| 88 | + public function getDescripcion() | |
| 89 | + { | |
| 90 | + return $this->descripcion; | |
| 91 | + } | |
| 92 | + | |
| 93 | + /** | |
| 94 | + * Set total_horas | |
| 95 | + * | |
| 96 | + * @param integer $totalHoras | |
| 97 | + * @return DocenteDedicacion | |
| 98 | + */ | |
| 99 | + public function setTotalHoras($totalHoras) | |
| 100 | + { | |
| 101 | + $this->total_horas = $totalHoras; | |
| 102 | + | |
| 103 | + return $this; | |
| 104 | + } | |
| 105 | + | |
| 106 | + /** | |
| 107 | + * Get total_horas | |
| 108 | + * | |
| 109 | + * @return integer | |
| 110 | + */ | |
| 111 | + public function getTotalHoras() | |
| 112 | + { | |
| 113 | + return $this->total_horas; | |
| 114 | + } | |
| 115 | + | |
| 116 | + /** | |
| 117 | + * Set hora_docencia_minima | |
| 118 | + * | |
| 119 | + * @param integer $horaDocenciaMinima | |
| 120 | + * @return DocenteDedicacion | |
| 121 | + */ | |
| 122 | + public function setHoraDocenciaMinima($horaDocenciaMinima) | |
| 123 | + { | |
| 124 | + $this->hora_docencia_minima = $horaDocenciaMinima; | |
| 125 | + | |
| 126 | + return $this; | |
| 127 | + } | |
| 128 | + | |
| 129 | + /** | |
| 130 | + * Get hora_docencia_minima | |
| 131 | + * | |
| 132 | + * @return integer | |
| 133 | + */ | |
| 134 | + public function getHoraDocenciaMinima() | |
| 135 | + { | |
| 136 | + return $this->hora_docencia_minima; | |
| 137 | + } | |
| 138 | + | |
| 139 | + /** | |
| 140 | + * Set hora_docencia_maxima | |
| 141 | + * | |
| 142 | + * @param integer $horaDocenciaMaxima | |
| 143 | + * @return DocenteDedicacion | |
| 144 | + */ | |
| 145 | + public function setHoraDocenciaMaxima($horaDocenciaMaxima) | |
| 146 | + { | |
| 147 | + $this->hora_docencia_maxima = $horaDocenciaMaxima; | |
| 148 | + | |
| 149 | + return $this; | |
| 150 | + } | |
| 151 | + | |
| 152 | + /** | |
| 153 | + * Get hora_docencia_maxima | |
| 154 | + * | |
| 155 | + * @return integer | |
| 156 | + */ | |
| 157 | + public function getHoraDocenciaMaxima() | |
| 158 | + { | |
| 159 | + return $this->hora_docencia_maxima; | |
| 160 | + } | |
| 161 | + | |
| 162 | + /** | |
| 163 | + * Add docentes | |
| 164 | + * | |
| 165 | + * @param \UBV\SurUbvBundle\Entity\Docente $docentes | |
| 166 | + * @return DocenteDedicacion | |
| 167 | + */ | |
| 168 | + public function addDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) | |
| 169 | + { | |
| 170 | + $this->docentes[] = $docentes; | |
| 171 | + | |
| 172 | + return $this; | |
| 173 | + } | |
| 174 | + | |
| 175 | + /** | |
| 176 | + * Remove docentes | |
| 177 | + * | |
| 178 | + * @param \UBV\SurUbvBundle\Entity\Docente $docentes | |
| 179 | + */ | |
| 180 | + public function removeDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) | |
| 181 | + { | |
| 182 | + $this->docentes->removeElement($docentes); | |
| 183 | + } | |
| 184 | + | |
| 185 | + /** | |
| 186 | + * Get docentes | |
| 187 | + * | |
| 188 | + * @return \Doctrine\Common\Collections\Collection | |
| 189 | + */ | |
| 190 | + public function getDocentes() | |
| 191 | + { | |
| 192 | + return $this->docentes; | |
| 193 | + } | |
| 194 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DocenteDedicacionRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * DocenteDedicacionRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class DocenteDedicacionRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DocenteEstatus.php
| ... | ... | @@ -0,0 +1,110 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\DocenteEstatus | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DocenteEstatusRepository") | |
| 12 | + * @ORM\Table(name="docente_estatus", uniqueConstraints={@ORM\UniqueConstraint(name="id_docente_estatus_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class DocenteEstatus | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="docente_estatus_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="string", length=45) | |
| 26 | + */ | |
| 27 | + protected $descripcion; | |
| 28 | + | |
| 29 | + /** | |
| 30 | + * @ORM\OneToMany(targetEntity="Docente", mappedBy="docenteEstatus") | |
| 31 | + * @ORM\JoinColumn(name="id", referencedColumnName="docente_estatus_id", nullable=false) | |
| 32 | + */ | |
| 33 | + protected $docentes; | |
| 34 | + | |
| 35 | + public function __construct() | |
| 36 | + { | |
| 37 | + $this->docentes = new ArrayCollection(); | |
| 38 | + } | |
| 39 | + | |
| 40 | + public function __sleep() | |
| 41 | + { | |
| 42 | + return array('id', 'descripcion'); | |
| 43 | + } | |
| 44 | + | |
| 45 | + /** | |
| 46 | + * Get id | |
| 47 | + * | |
| 48 | + * @return integer | |
| 49 | + */ | |
| 50 | + public function getId() | |
| 51 | + { | |
| 52 | + return $this->id; | |
| 53 | + } | |
| 54 | + | |
| 55 | + /** | |
| 56 | + * Set descripcion | |
| 57 | + * | |
| 58 | + * @param string $descripcion | |
| 59 | + * @return DocenteEstatus | |
| 60 | + */ | |
| 61 | + public function setDescripcion($descripcion) | |
| 62 | + { | |
| 63 | + $this->descripcion = $descripcion; | |
| 64 | + | |
| 65 | + return $this; | |
| 66 | + } | |
| 67 | + | |
| 68 | + /** | |
| 69 | + * Get descripcion | |
| 70 | + * | |
| 71 | + * @return string | |
| 72 | + */ | |
| 73 | + public function getDescripcion() | |
| 74 | + { | |
| 75 | + return $this->descripcion; | |
| 76 | + } | |
| 77 | + | |
| 78 | + /** | |
| 79 | + * Add docentes | |
| 80 | + * | |
| 81 | + * @param \UBV\SurUbvBundle\Entity\Docente $docentes | |
| 82 | + * @return DocenteEstatus | |
| 83 | + */ | |
| 84 | + public function addDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) | |
| 85 | + { | |
| 86 | + $this->docentes[] = $docentes; | |
| 87 | + | |
| 88 | + return $this; | |
| 89 | + } | |
| 90 | + | |
| 91 | + /** | |
| 92 | + * Remove docentes | |
| 93 | + * | |
| 94 | + * @param \UBV\SurUbvBundle\Entity\Docente $docentes | |
| 95 | + */ | |
| 96 | + public function removeDocente(\UBV\SurUbvBundle\Entity\Docente $docentes) | |
| 97 | + { | |
| 98 | + $this->docentes->removeElement($docentes); | |
| 99 | + } | |
| 100 | + | |
| 101 | + /** | |
| 102 | + * Get docentes | |
| 103 | + * | |
| 104 | + * @return \Doctrine\Common\Collections\Collection | |
| 105 | + */ | |
| 106 | + public function getDocentes() | |
| 107 | + { | |
| 108 | + return $this->docentes; | |
| 109 | + } | |
| 110 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DocenteEstatusRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * DocenteEstatusRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class DocenteEstatusRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DocenteRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * DocenteRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class DocenteRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DocumentoIdentidadTipo.php
| ... | ... | @@ -0,0 +1,190 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | +use Doctrine\Common\Collections\ArrayCollection; | |
| 7 | +use Symfony\Component\Validator\Constraints as Assert; | |
| 8 | +/** | |
| 9 | + * UBV\SurUbvBundle\Entity\DocumentoIdentidadTipo | |
| 10 | + * | |
| 11 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DocumentoIdentidadTipoRepository") | |
| 12 | + * @ORM\Table(name="documento_identidad_tipo", uniqueConstraints={@ORM\UniqueConstraint(name="id_documento_identidad_UNIQUE", columns={"id"})}) | |
| 13 | + */ | |
| 14 | +class DocumentoIdentidadTipo | |
| 15 | +{ | |
| 16 | + /** | |
| 17 | + * @ORM\Id | |
| 18 | + * @ORM\Column(type="integer") | |
| 19 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 20 | + * @ORM\SequenceGenerator(sequenceName="documento_identidad_tipo_id_seq", allocationSize=1, initialValue=1) | |
| 21 | + */ | |
| 22 | + protected $id; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * @ORM\Column(type="string", length=10, nullable=false) | |
| 26 | + * @Assert\NotBlank( message= "Por favor introduzca El Tipo De Documento") | |
| 27 | + *@Assert\Length( | |
| 28 | + * min = 4, | |
| 29 | + * max = 10, | |
| 30 | + * minMessage = "Por favor introduzca un Tipo de Documento mรกs especรญfico. Mรญnimo {{ limit }} caracteres", | |
| 31 | + * maxMessage = "Por favor introduzca un Tipo de Documento mรกs breve. Mรกximo {{ limit }} caracteres", | |
| 32 | + *) | |
| 33 | + */ | |
| 34 | + protected $descripcion; | |
| 35 | + | |
| 36 | + /** | |
| 37 | + * @ORM\Column(type="string", length=10, nullable=true) | |
| 38 | + */ | |
| 39 | + protected $codigo; | |
| 40 | + | |
| 41 | + /** | |
| 42 | + * @ORM\OneToMany(targetEntity="PersonaNacionalidad", mappedBy="documentoIdentidadTipo") | |
| 43 | + * @ORM\JoinColumn(name="id", referencedColumnName="documento_identidad_tipo_id", nullable=false) | |
| 44 | + */ | |
| 45 | + protected $personaNacionalidads; | |
| 46 | + | |
| 47 | + /** | |
| 48 | + * @ORM\OneToMany(targetEntity="Candidato", mappedBy="documentoIdentidadTipo") | |
| 49 | + * @ORM\JoinColumn(name="id", referencedColumnName="documento_identidad_tipo_id", nullable=false) | |
| 50 | + */ | |
| 51 | + protected $candidatos; | |
| 52 | + | |
| 53 | + public function __construct() | |
| 54 | + { | |
| 55 | + $this->candidatos = new ArrayCollection(); | |
| 56 | + $this->personaNacionalidads = new ArrayCollection(); | |
| 57 | + } | |
| 58 | + | |
| 59 | + public function __sleep() | |
| 60 | + { | |
| 61 | + return array('id', 'descripcion', 'codigo'); | |
| 62 | + } | |
| 63 | + | |
| 64 | + /** | |
| 65 | + * Get id | |
| 66 | + * | |
| 67 | + * @return integer | |
| 68 | + */ | |
| 69 | + public function getId() | |
| 70 | + { | |
| 71 | + return $this->id; | |
| 72 | + } | |
| 73 | + | |
| 74 | + /** | |
| 75 | + * Set descripcion | |
| 76 | + * | |
| 77 | + * @param string $descripcion | |
| 78 | + * @return DocumentoIdentidadTipo | |
| 79 | + */ | |
| 80 | + public function setDescripcion($descripcion) | |
| 81 | + { | |
| 82 | + $this->descripcion = $descripcion; | |
| 83 | + | |
| 84 | + return $this; | |
| 85 | + } | |
| 86 | + | |
| 87 | + /** | |
| 88 | + * Get descripcion | |
| 89 | + * | |
| 90 | + * @return string | |
| 91 | + */ | |
| 92 | + public function getDescripcion() | |
| 93 | + { | |
| 94 | + return $this->descripcion; | |
| 95 | + } | |
| 96 | + | |
| 97 | + /** | |
| 98 | + * Add personaNacionalidads | |
| 99 | + * | |
| 100 | + * @param \UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads | |
| 101 | + * @return DocumentoIdentidadTipo | |
| 102 | + */ | |
| 103 | + public function addPersonaNacionalidad(\UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads) | |
| 104 | + { | |
| 105 | + $this->personaNacionalidads[] = $personaNacionalidads; | |
| 106 | + | |
| 107 | + return $this; | |
| 108 | + } | |
| 109 | + | |
| 110 | + /** | |
| 111 | + * Remove personaNacionalidads | |
| 112 | + * | |
| 113 | + * @param \UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads | |
| 114 | + */ | |
| 115 | + public function removePersonaNacionalidad(\UBV\SurUbvBundle\Entity\PersonaNacionalidad $personaNacionalidads) | |
| 116 | + { | |
| 117 | + $this->personaNacionalidads->removeElement($personaNacionalidads); | |
| 118 | + } | |
| 119 | + | |
| 120 | + /** | |
| 121 | + * Get personaNacionalidads | |
| 122 | + * | |
| 123 | + * @return \Doctrine\Common\Collections\Collection | |
| 124 | + */ | |
| 125 | + public function getPersonaNacionalidads() | |
| 126 | + { | |
| 127 | + return $this->personaNacionalidads; | |
| 128 | + } | |
| 129 | + | |
| 130 | + /** | |
| 131 | + * Set codigo | |
| 132 | + * | |
| 133 | + * @param string $codigo | |
| 134 | + * @return DocumentoIdentidadTipo | |
| 135 | + */ | |
| 136 | + public function setCodigo($codigo) | |
| 137 | + { | |
| 138 | + $this->codigo = $codigo; | |
| 139 | + | |
| 140 | + return $this; | |
| 141 | + } | |
| 142 | + | |
| 143 | + /** | |
| 144 | + * Get codigo | |
| 145 | + * | |
| 146 | + * @return string | |
| 147 | + */ | |
| 148 | + public function getCodigo() | |
| 149 | + { | |
| 150 | + return $this->codigo; | |
| 151 | + } | |
| 152 | + | |
| 153 | + public function __toString() | |
| 154 | + { | |
| 155 | + return $this->codigo; | |
| 156 | + } | |
| 157 | + | |
| 158 | + /** | |
| 159 | + * Add candidatos | |
| 160 | + * | |
| 161 | + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
| 162 | + * @return DocumentoIdentidadTipo | |
| 163 | + */ | |
| 164 | + public function addCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
| 165 | + { | |
| 166 | + $this->candidatos[] = $candidatos; | |
| 167 | + | |
| 168 | + return $this; | |
| 169 | + } | |
| 170 | + | |
| 171 | + /** | |
| 172 | + * Remove candidatos | |
| 173 | + * | |
| 174 | + * @param \UBV\SurUbvBundle\Entity\Candidato $candidatos | |
| 175 | + */ | |
| 176 | + public function removeCandidato(\UBV\SurUbvBundle\Entity\Candidato $candidatos) | |
| 177 | + { | |
| 178 | + $this->candidatos->removeElement($candidatos); | |
| 179 | + } | |
| 180 | + | |
| 181 | + /** | |
| 182 | + * Get candidatos | |
| 183 | + * | |
| 184 | + * @return \Doctrine\Common\Collections\Collection | |
| 185 | + */ | |
| 186 | + public function getCandidatos() | |
| 187 | + { | |
| 188 | + return $this->candidatos; | |
| 189 | + } | |
| 190 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DocumentoIdentidadTipoRepository.php
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\EntityRepository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * DocumentoIdentidadTipoRepository | |
| 9 | + * | |
| 10 | + * This class was generated by the Doctrine ORM. Add your own custom | |
| 11 | + * repository methods below. | |
| 12 | + */ | |
| 13 | +class DocumentoIdentidadTipoRepository extends EntityRepository | |
| 14 | +{ | |
| 15 | +} | ... | ... |
src/UBV/PracticaBundle/Entity/DomicilioDetalle.php
| ... | ... | @@ -0,0 +1,127 @@ |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace UBV\SurUbvBundle\Entity; | |
| 4 | + | |
| 5 | +use Doctrine\ORM\Mapping as ORM; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * UBV\SurUbvBundle\Entity\DomicilioDetalle | |
| 9 | + * | |
| 10 | + * @ORM\Entity(repositoryClass="UBV\SurUbvBundle\Entity\DomicilioDetalleRepository") | |
| 11 | + * @ORM\Table(name="domicilio_detalle", indexes={@ORM\Index(name="fk_domicilio_detalle_domicilio_persona1_idx", columns={"domicilio_persona_id"}), @ORM\Index(name="fk_domicilio_detalle_domicilio_detalle_tipo1_idx", columns={"domicilio_detalle_tipo_id"})}, uniqueConstraints={@ORM\UniqueConstraint(name="id_dominilio_detalle_UNIQUE", columns={"id"})}) | |
| 12 | + */ | |
| 13 | +class DomicilioDetalle | |
| 14 | +{ | |
| 15 | + /** | |
| 16 | + * @ORM\Id | |
| 17 | + * @ORM\Column(type="integer") | |
| 18 | + * @ORM\GeneratedValue(strategy="IDENTITY") | |
| 19 | + * @ORM\SequenceGenerator(sequenceName="domicilio_detalle_id_seq", allocationSize=1, initialValue=1) | |
| 20 | + */ | |
| 21 | + protected $id; | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * @ORM\Column(type="string", length=45) | |
| 25 | + */ | |
| 26 | + protected $descripcion; | |
| 27 | + | |
| 28 | + /** | |
| 29 | + * @ORM\ManyToOne(targetEntity="DomicilioPersona", inversedBy="domicilioDetalles") | |
| 30 | + * @ORM\JoinColumn(name="domicilio_persona_id", referencedColumnName="id", nullable=false) | |
| 31 | + */ | |
| 32 | + protected $domicilioPersona; | |
| 33 | + | |
| 34 | + /** | |
| 35 | + * @ORM\ManyToOne(targetEntity="DomicilioDetalleTipo", inversedBy="domicilioDetalles") | |
| 36 | + * @ORM\JoinColumn(name="domicilio_detalle_tipo_id", referencedColumnName="id", nullable=false) | |
| 37 | + */ | |
| 38 | + protected $domicilioDetalleTipo; | |
| 39 | + | |
| 40 | + public function __construct() | |
| 41 | + { | |
| 42 | + } | |
| 43 | + | |
| 44 | + public function __sleep() | |
| 45 | + { | |
| 46 | + return array('id', 'domicilio_persona_id', 'descripcion', 'domicilio_detalle_tipo_id'); | |
| 47 | + } | |
| 48 | + | |
| 49 | + /** | |
| 50 | + * Get id | |
| 51 | + * | |
| 52 | + * @return integer | |
| 53 | + */ | |
| 54 | + public function getId() | |
| 55 | + { | |
| 56 | + return $this->id; | |
| 57 | + } | |
| 58 | + | |
| 59 | + /** | |
| 60 | + * Set descripcion | |
| 61 | + * | |
| 62 | + * @param string $descripcion | |
| 63 | + * @return DomicilioDetalle | |
| 64 | + */ | |
| 65 | + public function setDescripcion($descripcion) | |
| 66 | + { | |
| 67 | + $this->descripcion = $descripcion; | |
| 68 | + | |
| 69 | + return $this; | |
| 70 | + } | |
| 71 | + | |
| 72 | + /** | |
| 73 | + * Get descripcion | |
| 74 | + * | |
| 75 | + * @return string | |
| 76 | + */ | |
| 77 | + public function getDescripcion() | |
| 78 | + { | |
| 79 | + return $this->descripcion; | |
| 80 | + } | |
| 81 | + | |
| 82 | + /** | |
| 83 | + * Set domicilioPersona | |
| 84 | + * | |
| 85 | + * @param \UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersona | |
| 86 | + * @return DomicilioDetalle | |
| 87 | + */ | |
| 88 | + public function setDomicilioPersona(\UBV\SurUbvBundle\Entity\DomicilioPersona $domicilioPersona) | |
| 89 | + { | |
| 90 | + $this->domicilioPersona = $domicilioPersona; | |
| 91 | + | |
| 92 | + return $this; | |
| 93 | + } | |
| 94 | + | |
| 95 | + /** | |
| 96 | + * Get domicilioPersona | |
| 97 | + * | |
| 98 | + * @return \UBV\SurUbvBundle\Entity\DomicilioPersona | |
| 99 | + */ | |
| 100 | + public function getDomicilioPersona() | |
| 101 | + { | |
| 102 | + return $this->domicilioPersona; | |
| 103 | + } | |
| 104 | + | |
| 105 | + /** | |
| 106 | + * Set domicilioDetalleTipo | |
| 107 | + * | |
| 108 | + * @param \UBV\SurUbvBundle\Entity\DomicilioDetalleTipo $domicilioDetalleTipo | |
| 109 | + * @return DomicilioDetalle | |
| 110 | + */ | |
| 111 | + public function setDomicilioDetalleTipo(\UBV\SurUbvBundle\Entity\DomicilioDetalleTipo $domicilioDetalleTipo) | |
| 112 | + { | |
| 113 | + $this->domicilioDetalleTipo = $domicilioDetalleTipo; | |
| 114 | + | |
| 115 | + return $this; | |
| 116 | + } | |
| 117 | + | |
| 118 | + /** | |
| 119 | + * Get domicilioDetalleTipo | |
| 120 | + * | |
| 121 | + * @return \UBV\SurUbvBundle\Entity\DomicilioDetalleTipo | |
| 122 | + */ | |
| 123 | + public function getDomicilioDetalleTipo() | |
| 124 | + { | |
| 125 | + return $this->domicilioDetalleTipo; | |
| 126 | + } | |
| 127 | +} | ... | ... |