113 changed files with 18453 additions and 0 deletions
-
39.env
-
6.env.test
-
20.gitignore
-
17bin/console
-
6cc.sh
-
109composer.json
-
12127composer.lock
-
29config/bundles.php
-
7config/packages/api_platform.yaml
-
19config/packages/cache.yaml
-
4config/packages/dev/debug.yaml
-
19config/packages/dev/monolog.yaml
-
6config/packages/dev/web_profiler.yaml
-
18config/packages/doctrine.yaml
-
6config/packages/doctrine_migrations.yaml
-
24config/packages/framework.yaml
-
3config/packages/mailer.yaml
-
9config/packages/nelmio_api_doc.yaml
-
10config/packages/nelmio_cors.yaml
-
16config/packages/notifier.yaml
-
8config/packages/prod/deprecations.yaml
-
20config/packages/prod/doctrine.yaml
-
17config/packages/prod/monolog.yaml
-
12config/packages/routing.yaml
-
25config/packages/security.yaml
-
3config/packages/sensio_framework_extra.yaml
-
10config/packages/sonata_admin.yaml
-
2config/packages/sonata_form.yaml
-
4config/packages/test/doctrine.yaml
-
12config/packages/test/monolog.yaml
-
3config/packages/test/validator.yaml
-
6config/packages/test/web_profiler.yaml
-
13config/packages/translation.yaml
-
6config/packages/twig.yaml
-
8config/packages/validator.yaml
-
5config/preload.php
-
3config/routes.yaml
-
7config/routes/annotations.yaml
-
4config/routes/api_platform.yaml
-
2config/routes/calendar.yaml
-
7config/routes/dev/web_profiler.yaml
-
4config/routes/framework.yaml
-
12config/routes/nelmio_api_doc.yaml
-
8config/routes/sonata_admin.yaml
-
200config/services.yaml
-
2geneatefromdatabase.sh
-
28generateentities.sh
-
4installcomposer.sh
-
0migrations/.gitignore
-
42phpunit.xml.dist
-
66public/.htaccess
-
9public/index.php
-
0src/Admin/.gitignore
-
61src/Admin/BonosAdmin.php
-
57src/Admin/CategoriasAdmin.php
-
77src/Admin/ClientesAdmin.php
-
61src/Admin/ComentariosAdmin.php
-
57src/Admin/ConfiguracionAdmin.php
-
69src/Admin/DireccionesAdmin.php
-
77src/Admin/FacturasAdmin.php
-
61src/Admin/FacturaslineaAdmin.php
-
69src/Admin/FormulariosAdmin.php
-
57src/Admin/GroupAdmin.php
-
61src/Admin/IdiomaAdmin.php
-
57src/Admin/ImagenesAdmin.php
-
61src/Admin/MenuAdmin.php
-
69src/Admin/MenuitemAdmin.php
-
73src/Admin/ModulosAdmin.php
-
73src/Admin/PaginaAdmin.php
-
73src/Admin/PlantillasAdmin.php
-
61src/Admin/PreguntaformularioAdmin.php
-
53src/Admin/PresupuestosAdmin.php
-
61src/Admin/ProductosAdmin.php
-
49src/Admin/ProductosimagenAdmin.php
-
61src/Admin/ProductovariantesAdmin.php
-
57src/Admin/RespuestaformularioAdmin.php
-
57src/Admin/TipopreguntaAdmin.php
-
101src/Admin/UserAdmin.php
-
0src/Controller/.gitignore
-
17src/DataFixtures/AppFixtures.php
-
0src/Entity/.gitignore
-
153src/Entity/Bonos.php
-
133src/Entity/Categorias.php
-
163src/Entity/Clientes.php
-
131src/Entity/Comentarios.php
-
68src/Entity/Configuracion.php
-
147src/Entity/Direcciones.php
-
185src/Entity/Facturas.php
-
153src/Entity/Facturaslinea.php
-
147src/Entity/Formularios.php
-
18src/Entity/Group.php
-
87src/Entity/Idioma.php
-
97src/Entity/Imagenes.php
-
87src/Entity/Menu.php
-
147src/Entity/Menuitem.php
-
144src/Entity/Modulos.php
-
166src/Entity/Pagina.php
-
144src/Entity/Plantillas.php
-
109src/Entity/Preguntaformulario.php
-
115src/Entity/Presupuestos.php
@ -0,0 +1,39 @@ |
|||||
|
# In all environments, the following files are loaded if they exist, |
||||
|
# the latter taking precedence over the former: |
||||
|
# |
||||
|
# * .env contains default values for the environment variables needed by the app |
||||
|
# * .env.local uncommitted file with local overrides |
||||
|
# * .env.$APP_ENV committed environment-specific defaults |
||||
|
# * .env.$APP_ENV.local uncommitted environment-specific overrides |
||||
|
# |
||||
|
# Real environment variables win over .env files. |
||||
|
# |
||||
|
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES. |
||||
|
# |
||||
|
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2). |
||||
|
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration |
||||
|
|
||||
|
###> symfony/framework-bundle ### |
||||
|
APP_ENV=dev |
||||
|
APP_SECRET=78583d7b8bda3f2da4c78cda66b645f6 |
||||
|
###< symfony/framework-bundle ### |
||||
|
|
||||
|
###> symfony/mailer ### |
||||
|
MAILER_DSN=smtp://localhost |
||||
|
###< symfony/mailer ### |
||||
|
|
||||
|
###> doctrine/doctrine-bundle ### |
||||
|
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url |
||||
|
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml |
||||
|
# |
||||
|
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db" |
||||
|
DATABASE_URL=mysql://mapescador:Pichi23Pichi23@127.0.0.1:3306/puertos?serverVersion=5.6 |
||||
|
|
||||
|
#DATABASE_URL="mysql://root:Pichi23Pichi23@127.0.0.1:3306/protocolo?serverVersion=5.7" |
||||
|
#DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8" |
||||
|
###< doctrine/doctrine-bundle ### |
||||
|
|
||||
|
###> nelmio/cors-bundle ### |
||||
|
CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$' |
||||
|
###< nelmio/cors-bundle ### |
||||
|
|
||||
@ -0,0 +1,6 @@ |
|||||
|
# define your env variables for the test env here |
||||
|
KERNEL_CLASS='App\Kernel' |
||||
|
APP_SECRET='$ecretf0rt3st' |
||||
|
SYMFONY_DEPRECATIONS_HELPER=999999 |
||||
|
PANTHER_APP_ENV=panther |
||||
|
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots |
||||
@ -0,0 +1,17 @@ |
|||||
|
#!/usr/bin/env php |
||||
|
<?php |
||||
|
|
||||
|
use App\Kernel; |
||||
|
use Symfony\Bundle\FrameworkBundle\Console\Application; |
||||
|
|
||||
|
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) { |
||||
|
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".'); |
||||
|
} |
||||
|
|
||||
|
require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; |
||||
|
|
||||
|
return function (array $context) { |
||||
|
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); |
||||
|
|
||||
|
return new Application($kernel); |
||||
|
}; |
||||
@ -0,0 +1,6 @@ |
|||||
|
|
||||
|
bin/console doctrine:cache:clear-metadata |
||||
|
bin/console doctrine:cache:clear-query |
||||
|
bin/console doctrine:cache:clear-result |
||||
|
|
||||
|
bin/console cache:clear --no-warmup --no-optional-warmers --env=dev |
||||
@ -0,0 +1,109 @@ |
|||||
|
{ |
||||
|
"type": "project", |
||||
|
"license": "proprietary", |
||||
|
"minimum-stability": "stable", |
||||
|
"prefer-stable": true, |
||||
|
"require": { |
||||
|
"php": ">=7.2.5", |
||||
|
"ext-ctype": "*", |
||||
|
"ext-iconv": "*", |
||||
|
"api-platform/core": "^2.6", |
||||
|
"appaydin/pd-user": "^3.0", |
||||
|
"composer/package-versions-deprecated": "1.11.99.2", |
||||
|
"doctrine/annotations": "^1.0", |
||||
|
"doctrine/doctrine-bundle": "^2.4", |
||||
|
"doctrine/doctrine-migrations-bundle": "^3.1", |
||||
|
"doctrine/orm": "^2.9", |
||||
|
"nelmio/api-doc-bundle": "^4.4", |
||||
|
"nelmio/cors-bundle": "^2.1", |
||||
|
"phpdocumentor/reflection-docblock": "^5.2", |
||||
|
"sensio/framework-extra-bundle": "^6.1", |
||||
|
"sonata-project/admin-bundle": "dev-master", |
||||
|
"sonata-project/doctrine-orm-admin-bundle": "dev-master", |
||||
|
"symfony/apache-pack": "^1.0", |
||||
|
"symfony/asset": "5.3.*", |
||||
|
"symfony/console": "5.3.*", |
||||
|
"symfony/dotenv": "5.3.*", |
||||
|
"symfony/expression-language": "5.3.*", |
||||
|
"symfony/flex": "^1.3.1", |
||||
|
"symfony/form": "5.3.*", |
||||
|
"symfony/framework-bundle": "5.3.*", |
||||
|
"symfony/http-client": "5.3.*", |
||||
|
"symfony/intl": "5.3.*", |
||||
|
"symfony/mailer": "5.3.*", |
||||
|
"symfony/maker-bundle": "^1.32", |
||||
|
"symfony/mime": "5.3.*", |
||||
|
"symfony/monolog-bundle": "^3.1", |
||||
|
"symfony/notifier": "5.3.*", |
||||
|
"symfony/process": "5.3.*", |
||||
|
"symfony/property-access": "5.3.*", |
||||
|
"symfony/property-info": "5.3.*", |
||||
|
"symfony/proxy-manager-bridge": "5.3.*", |
||||
|
"symfony/runtime": "5.3.*", |
||||
|
"symfony/security-bundle": "5.3.*", |
||||
|
"symfony/serializer": "5.3.*", |
||||
|
"symfony/string": "5.3.*", |
||||
|
"symfony/translation": "5.3.*", |
||||
|
"symfony/twig-bundle": "^5.3", |
||||
|
"symfony/validator": "5.3.*", |
||||
|
"symfony/web-link": "5.3.*", |
||||
|
"symfony/yaml": "5.3.*", |
||||
|
"tattali/calendar-bundle": "^1.2", |
||||
|
"twig/extra-bundle": "^2.12|^3.0", |
||||
|
"twig/twig": "^2.12|^3.0" |
||||
|
}, |
||||
|
"require-dev": { |
||||
|
"doctrine/doctrine-fixtures-bundle": "^3.4", |
||||
|
"phpunit/phpunit": "^9.5", |
||||
|
"symfony/browser-kit": "^5.3", |
||||
|
"symfony/css-selector": "^5.3", |
||||
|
"symfony/debug-bundle": "^5.3", |
||||
|
"symfony/phpunit-bridge": "^5.3", |
||||
|
"symfony/stopwatch": "^5.3", |
||||
|
"symfony/var-dumper": "^5.3", |
||||
|
"symfony/web-profiler-bundle": "^5.3" |
||||
|
}, |
||||
|
"config": { |
||||
|
"optimize-autoloader": true, |
||||
|
"preferred-install": { |
||||
|
"*": "dist" |
||||
|
}, |
||||
|
"sort-packages": true |
||||
|
}, |
||||
|
"autoload": { |
||||
|
"psr-4": { |
||||
|
"App\\": "src/" |
||||
|
} |
||||
|
}, |
||||
|
"autoload-dev": { |
||||
|
"psr-4": { |
||||
|
"App\\Tests\\": "tests/" |
||||
|
} |
||||
|
}, |
||||
|
"replace": { |
||||
|
"symfony/polyfill-ctype": "*", |
||||
|
"symfony/polyfill-iconv": "*", |
||||
|
"symfony/polyfill-php72": "*" |
||||
|
}, |
||||
|
"scripts": { |
||||
|
"auto-scripts": { |
||||
|
"cache:clear": "symfony-cmd", |
||||
|
"assets:install %PUBLIC_DIR%": "symfony-cmd" |
||||
|
}, |
||||
|
"post-install-cmd": [ |
||||
|
"@auto-scripts" |
||||
|
], |
||||
|
"post-update-cmd": [ |
||||
|
"@auto-scripts" |
||||
|
] |
||||
|
}, |
||||
|
"conflict": { |
||||
|
"symfony/symfony": "*" |
||||
|
}, |
||||
|
"extra": { |
||||
|
"symfony": { |
||||
|
"allow-contrib": false, |
||||
|
"require": "5.3.*" |
||||
|
} |
||||
|
} |
||||
|
} |
||||
12127
composer.lock
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,29 @@ |
|||||
|
<?php |
||||
|
|
||||
|
return [ |
||||
|
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true], |
||||
|
ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true], |
||||
|
Pd\UserBundle\PdUserBundle::class => ['all' => true], |
||||
|
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true], |
||||
|
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true], |
||||
|
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true], |
||||
|
Knp\Bundle\MenuBundle\KnpMenuBundle::class => ['all' => true], |
||||
|
Nelmio\ApiDocBundle\NelmioApiDocBundle::class => ['all' => true], |
||||
|
Nelmio\CorsBundle\NelmioCorsBundle::class => ['all' => true], |
||||
|
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true], |
||||
|
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true], |
||||
|
Sonata\Doctrine\Bridge\Symfony\SonataDoctrineSymfonyBundle::class => ['all' => true], |
||||
|
Sonata\Twig\Bridge\Symfony\SonataTwigSymfonyBundle::class => ['all' => true], |
||||
|
Sonata\Form\Bridge\Symfony\SonataFormBundle::class => ['all' => true], |
||||
|
Sonata\BlockBundle\SonataBlockBundle::class => ['all' => true], |
||||
|
Sonata\Exporter\Bridge\Symfony\SonataExporterSymfonyBundle::class => ['all' => true], |
||||
|
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true], |
||||
|
Sonata\AdminBundle\SonataAdminBundle::class => ['all' => true], |
||||
|
Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle::class => ['all' => true], |
||||
|
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true], |
||||
|
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true], |
||||
|
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true], |
||||
|
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true], |
||||
|
CalendarBundle\CalendarBundle::class => ['all' => true], |
||||
|
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true], |
||||
|
]; |
||||
@ -0,0 +1,7 @@ |
|||||
|
api_platform: |
||||
|
mapping: |
||||
|
paths: ['%kernel.project_dir%/src/Entity'] |
||||
|
patch_formats: |
||||
|
json: ['application/merge-patch+json'] |
||||
|
swagger: |
||||
|
versions: [3] |
||||
@ -0,0 +1,19 @@ |
|||||
|
framework: |
||||
|
cache: |
||||
|
# Unique name of your app: used to compute stable namespaces for cache keys. |
||||
|
#prefix_seed: your_vendor_name/app_name |
||||
|
|
||||
|
# The "app" cache stores to the filesystem by default. |
||||
|
# The data in this cache should persist between deploys. |
||||
|
# Other options include: |
||||
|
|
||||
|
# Redis |
||||
|
#app: cache.adapter.redis |
||||
|
#default_redis_provider: redis://localhost |
||||
|
|
||||
|
# APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues) |
||||
|
#app: cache.adapter.apcu |
||||
|
|
||||
|
# Namespaced pools use the above "app" backend by default |
||||
|
#pools: |
||||
|
#my.dedicated.cache: null |
||||
@ -0,0 +1,4 @@ |
|||||
|
debug: |
||||
|
# Forwards VarDumper Data clones to a centralized server allowing to inspect dumps on CLI or in your browser. |
||||
|
# See the "server:dump" command to start a new server. |
||||
|
dump_destination: "tcp://%env(VAR_DUMPER_SERVER)%" |
||||
@ -0,0 +1,19 @@ |
|||||
|
monolog: |
||||
|
handlers: |
||||
|
main: |
||||
|
type: stream |
||||
|
path: "%kernel.logs_dir%/%kernel.environment%.log" |
||||
|
level: debug |
||||
|
channels: ["!event"] |
||||
|
# uncomment to get logging in your browser |
||||
|
# you may have to allow bigger header sizes in your Web server configuration |
||||
|
#firephp: |
||||
|
# type: firephp |
||||
|
# level: info |
||||
|
#chromephp: |
||||
|
# type: chromephp |
||||
|
# level: info |
||||
|
console: |
||||
|
type: console |
||||
|
process_psr_3_messages: false |
||||
|
channels: ["!event", "!doctrine", "!console"] |
||||
@ -0,0 +1,6 @@ |
|||||
|
web_profiler: |
||||
|
toolbar: true |
||||
|
intercept_redirects: false |
||||
|
|
||||
|
framework: |
||||
|
profiler: { only_exceptions: false } |
||||
@ -0,0 +1,18 @@ |
|||||
|
doctrine: |
||||
|
dbal: |
||||
|
url: '%env(resolve:DATABASE_URL)%' |
||||
|
|
||||
|
# IMPORTANT: You MUST configure your server version, |
||||
|
# either here or in the DATABASE_URL env var (see .env file) |
||||
|
#server_version: '13' |
||||
|
orm: |
||||
|
auto_generate_proxy_classes: true |
||||
|
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware |
||||
|
auto_mapping: true |
||||
|
mappings: |
||||
|
App: |
||||
|
is_bundle: false |
||||
|
type: annotation |
||||
|
dir: '%kernel.project_dir%/src/Entity' |
||||
|
prefix: 'App\Entity' |
||||
|
alias: App |
||||
@ -0,0 +1,6 @@ |
|||||
|
doctrine_migrations: |
||||
|
migrations_paths: |
||||
|
# namespace is arbitrary but should be different from App\Migrations |
||||
|
# as migrations classes should NOT be autoloaded |
||||
|
'DoctrineMigrations': '%kernel.project_dir%/migrations' |
||||
|
enable_profiler: '%kernel.debug%' |
||||
@ -0,0 +1,24 @@ |
|||||
|
# see https://symfony.com/doc/current/reference/configuration/framework.html |
||||
|
framework: |
||||
|
secret: '%env(APP_SECRET)%' |
||||
|
#csrf_protection: true |
||||
|
http_method_override: false |
||||
|
|
||||
|
# Enables session support. Note that the session will ONLY be started if you read or write from it. |
||||
|
# Remove or comment this section to explicitly disable session support. |
||||
|
session: |
||||
|
handler_id: null |
||||
|
cookie_secure: auto |
||||
|
cookie_samesite: lax |
||||
|
storage_factory_id: session.storage.factory.native |
||||
|
|
||||
|
#esi: true |
||||
|
#fragments: true |
||||
|
php_errors: |
||||
|
log: true |
||||
|
|
||||
|
when@test: |
||||
|
framework: |
||||
|
test: true |
||||
|
session: |
||||
|
storage_factory_id: session.storage.factory.mock_file |
||||
@ -0,0 +1,3 @@ |
|||||
|
framework: |
||||
|
mailer: |
||||
|
dsn: '%env(MAILER_DSN)%' |
||||
@ -0,0 +1,9 @@ |
|||||
|
nelmio_api_doc: |
||||
|
documentation: |
||||
|
info: |
||||
|
title: My App |
||||
|
description: This is an awesome app! |
||||
|
version: 1.0.0 |
||||
|
areas: # to filter documented areas |
||||
|
path_patterns: |
||||
|
- ^/api(?!/doc$) # Accepts routes under /api except /api/doc |
||||
@ -0,0 +1,10 @@ |
|||||
|
nelmio_cors: |
||||
|
defaults: |
||||
|
origin_regex: true |
||||
|
allow_origin: ['%env(CORS_ALLOW_ORIGIN)%'] |
||||
|
allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE'] |
||||
|
allow_headers: ['Content-Type', 'Authorization'] |
||||
|
expose_headers: ['Link'] |
||||
|
max_age: 3600 |
||||
|
paths: |
||||
|
'^/': null |
||||
@ -0,0 +1,16 @@ |
|||||
|
framework: |
||||
|
notifier: |
||||
|
#chatter_transports: |
||||
|
# slack: '%env(SLACK_DSN)%' |
||||
|
# telegram: '%env(TELEGRAM_DSN)%' |
||||
|
#texter_transports: |
||||
|
# twilio: '%env(TWILIO_DSN)%' |
||||
|
# nexmo: '%env(NEXMO_DSN)%' |
||||
|
channel_policy: |
||||
|
# use chat/slack, chat/telegram, sms/twilio or sms/nexmo |
||||
|
urgent: ['email'] |
||||
|
high: ['email'] |
||||
|
medium: ['email'] |
||||
|
low: ['email'] |
||||
|
admin_recipients: |
||||
|
- { email: admin@example.com } |
||||
@ -0,0 +1,8 @@ |
|||||
|
# As of Symfony 5.1, deprecations are logged in the dedicated "deprecation" channel when it exists |
||||
|
#monolog: |
||||
|
# channels: [deprecation] |
||||
|
# handlers: |
||||
|
# deprecation: |
||||
|
# type: stream |
||||
|
# channels: [deprecation] |
||||
|
# path: php://stderr |
||||
@ -0,0 +1,20 @@ |
|||||
|
doctrine: |
||||
|
orm: |
||||
|
auto_generate_proxy_classes: false |
||||
|
metadata_cache_driver: |
||||
|
type: pool |
||||
|
pool: doctrine.system_cache_pool |
||||
|
query_cache_driver: |
||||
|
type: pool |
||||
|
pool: doctrine.system_cache_pool |
||||
|
result_cache_driver: |
||||
|
type: pool |
||||
|
pool: doctrine.result_cache_pool |
||||
|
|
||||
|
framework: |
||||
|
cache: |
||||
|
pools: |
||||
|
doctrine.result_cache_pool: |
||||
|
adapter: cache.app |
||||
|
doctrine.system_cache_pool: |
||||
|
adapter: cache.system |
||||
@ -0,0 +1,17 @@ |
|||||
|
monolog: |
||||
|
handlers: |
||||
|
main: |
||||
|
type: fingers_crossed |
||||
|
action_level: error |
||||
|
handler: nested |
||||
|
excluded_http_codes: [404, 405] |
||||
|
buffer_size: 50 # How many messages should be saved? Prevent memory leaks |
||||
|
nested: |
||||
|
type: stream |
||||
|
path: php://stderr |
||||
|
level: debug |
||||
|
formatter: monolog.formatter.json |
||||
|
console: |
||||
|
type: console |
||||
|
process_psr_3_messages: false |
||||
|
channels: ["!event", "!doctrine"] |
||||
@ -0,0 +1,12 @@ |
|||||
|
framework: |
||||
|
router: |
||||
|
utf8: true |
||||
|
|
||||
|
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands. |
||||
|
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands |
||||
|
#default_uri: http://localhost |
||||
|
|
||||
|
when@prod: |
||||
|
framework: |
||||
|
router: |
||||
|
strict_requirements: null |
||||
@ -0,0 +1,25 @@ |
|||||
|
security: |
||||
|
# https://symfony.com/doc/current/security/experimental_authenticators.html |
||||
|
enable_authenticator_manager: true |
||||
|
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers |
||||
|
providers: |
||||
|
users_in_memory: { memory: null } |
||||
|
firewalls: |
||||
|
dev: |
||||
|
pattern: ^/(_(profiler|wdt)|css|images|js)/ |
||||
|
security: false |
||||
|
main: |
||||
|
lazy: true |
||||
|
provider: users_in_memory |
||||
|
|
||||
|
# activate different ways to authenticate |
||||
|
# https://symfony.com/doc/current/security.html#firewalls-authentication |
||||
|
|
||||
|
# https://symfony.com/doc/current/security/impersonating_user.html |
||||
|
# switch_user: true |
||||
|
|
||||
|
# Easy way to control access for large sections of your site |
||||
|
# Note: Only the *first* access control that matches will be used |
||||
|
access_control: |
||||
|
# - { path: ^/admin, roles: ROLE_ADMIN } |
||||
|
# - { path: ^/profile, roles: ROLE_USER } |
||||
@ -0,0 +1,3 @@ |
|||||
|
sensio_framework_extra: |
||||
|
router: |
||||
|
annotations: false |
||||
@ -0,0 +1,10 @@ |
|||||
|
sonata_admin: |
||||
|
title: 'Sonata Admin' |
||||
|
dashboard: |
||||
|
blocks: |
||||
|
- { type: sonata.admin.block.admin_list, position: left } |
||||
|
|
||||
|
sonata_block: |
||||
|
blocks: |
||||
|
sonata.admin.block.admin_list: |
||||
|
contexts: [admin] |
||||
@ -0,0 +1,2 @@ |
|||||
|
sonata_form: |
||||
|
form_type: standard |
||||
@ -0,0 +1,4 @@ |
|||||
|
doctrine: |
||||
|
dbal: |
||||
|
# "TEST_TOKEN" is typically set by ParaTest |
||||
|
dbname_suffix: '_test%env(default::TEST_TOKEN)%' |
||||
@ -0,0 +1,12 @@ |
|||||
|
monolog: |
||||
|
handlers: |
||||
|
main: |
||||
|
type: fingers_crossed |
||||
|
action_level: error |
||||
|
handler: nested |
||||
|
excluded_http_codes: [404, 405] |
||||
|
channels: ["!event"] |
||||
|
nested: |
||||
|
type: stream |
||||
|
path: "%kernel.logs_dir%/%kernel.environment%.log" |
||||
|
level: debug |
||||
@ -0,0 +1,3 @@ |
|||||
|
framework: |
||||
|
validation: |
||||
|
not_compromised_password: false |
||||
@ -0,0 +1,6 @@ |
|||||
|
web_profiler: |
||||
|
toolbar: false |
||||
|
intercept_redirects: false |
||||
|
|
||||
|
framework: |
||||
|
profiler: { collect: false } |
||||
@ -0,0 +1,13 @@ |
|||||
|
framework: |
||||
|
default_locale: en |
||||
|
translator: |
||||
|
default_path: '%kernel.project_dir%/translations' |
||||
|
fallbacks: |
||||
|
- en |
||||
|
# providers: |
||||
|
# crowdin: |
||||
|
# dsn: '%env(CROWDIN_DSN)%' |
||||
|
# loco: |
||||
|
# dsn: '%env(LOCO_DSN)%' |
||||
|
# lokalise: |
||||
|
# dsn: '%env(LOKALISE_DSN)%' |
||||
@ -0,0 +1,6 @@ |
|||||
|
twig: |
||||
|
default_path: '%kernel.project_dir%/templates' |
||||
|
|
||||
|
when@test: |
||||
|
twig: |
||||
|
strict_variables: true |
||||
@ -0,0 +1,8 @@ |
|||||
|
framework: |
||||
|
validation: |
||||
|
email_validation_mode: html5 |
||||
|
|
||||
|
# Enables validator auto-mapping support. |
||||
|
# For instance, basic validation constraints will be inferred from Doctrine's metadata. |
||||
|
#auto_mapping: |
||||
|
# App\Entity\: [] |
||||
@ -0,0 +1,5 @@ |
|||||
|
<?php |
||||
|
|
||||
|
if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) { |
||||
|
require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php'; |
||||
|
} |
||||
@ -0,0 +1,3 @@ |
|||||
|
#index: |
||||
|
# path: / |
||||
|
# controller: App\Controller\DefaultController::index |
||||
@ -0,0 +1,7 @@ |
|||||
|
controllers: |
||||
|
resource: ../../src/Controller/ |
||||
|
type: annotation |
||||
|
|
||||
|
kernel: |
||||
|
resource: ../../src/Kernel.php |
||||
|
type: annotation |
||||
@ -0,0 +1,4 @@ |
|||||
|
api_platform: |
||||
|
resource: . |
||||
|
type: api_platform |
||||
|
prefix: /api |
||||
@ -0,0 +1,2 @@ |
|||||
|
calendar: |
||||
|
resource: "@CalendarBundle/Resources/config/routing.yaml" |
||||
@ -0,0 +1,7 @@ |
|||||
|
web_profiler_wdt: |
||||
|
resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml' |
||||
|
prefix: /_wdt |
||||
|
|
||||
|
web_profiler_profiler: |
||||
|
resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml' |
||||
|
prefix: /_profiler |
||||
@ -0,0 +1,4 @@ |
|||||
|
when@dev: |
||||
|
_errors: |
||||
|
resource: '@FrameworkBundle/Resources/config/routing/errors.xml' |
||||
|
prefix: /_error |
||||
@ -0,0 +1,12 @@ |
|||||
|
# Expose your documentation as JSON swagger compliant |
||||
|
app.swagger: |
||||
|
path: /api/doc.json |
||||
|
methods: GET |
||||
|
defaults: { _controller: nelmio_api_doc.controller.swagger } |
||||
|
|
||||
|
## Requires the Asset component and the Twig bundle |
||||
|
## $ composer require twig asset |
||||
|
#app.swagger_ui: |
||||
|
# path: /api/doc |
||||
|
# methods: GET |
||||
|
# defaults: { _controller: nelmio_api_doc.controller.swagger_ui } |
||||
@ -0,0 +1,8 @@ |
|||||
|
admin_area: |
||||
|
resource: "@SonataAdminBundle/Resources/config/routing/sonata_admin.xml" |
||||
|
prefix: /admin |
||||
|
|
||||
|
_sonata_admin: |
||||
|
resource: . |
||||
|
type: sonata_admin |
||||
|
prefix: /admin |
||||
@ -0,0 +1,200 @@ |
|||||
|
# This file is the entry point to configure your own services. |
||||
|
# Files in the packages/ subdirectory configure your dependencies. |
||||
|
|
||||
|
# Put parameters here that don't need to change on each machine where the app is deployed |
||||
|
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration |
||||
|
parameters: |
||||
|
|
||||
|
services: |
||||
|
# default configuration for services in *this* file |
||||
|
_defaults: |
||||
|
autowire: true # Automatically injects dependencies in your services. |
||||
|
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. |
||||
|
|
||||
|
# makes classes in src/ available to be used as services |
||||
|
# this creates a service per class whose id is the fully-qualified class name |
||||
|
App\: |
||||
|
resource: '../src/' |
||||
|
exclude: |
||||
|
- '../src/DependencyInjection/' |
||||
|
- '../src/Entity/' |
||||
|
- '../src/Kernel.php' |
||||
|
- '../src/Tests/' |
||||
|
|
||||
|
# add more service definitions when explicit configuration is needed |
||||
|
# please note that last definitions always *replace* previous ones |
||||
|
|
||||
|
admin.productos: |
||||
|
class: App\Admin\ProductosAdmin |
||||
|
arguments: [~, App\Entity\Productos, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Productos } |
||||
|
public: true |
||||
|
|
||||
|
admin.formularios: |
||||
|
class: App\Admin\FormulariosAdmin |
||||
|
arguments: [~, App\Entity\Formularios, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Formularios } |
||||
|
public: true |
||||
|
|
||||
|
admin.tipopregunta: |
||||
|
class: App\Admin\TipopreguntaAdmin |
||||
|
arguments: [~, App\Entity\Tipopregunta, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Tipopregunta } |
||||
|
public: true |
||||
|
|
||||
|
admin.configuracion: |
||||
|
class: App\Admin\ConfiguracionAdmin |
||||
|
arguments: [~, App\Entity\Configuracion, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Configuracion } |
||||
|
public: true |
||||
|
|
||||
|
admin.menu: |
||||
|
class: App\Admin\MenuAdmin |
||||
|
arguments: [~, App\Entity\Menu, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Menu } |
||||
|
public: true |
||||
|
|
||||
|
admin.preguntaformulario: |
||||
|
class: App\Admin\PreguntaformularioAdmin |
||||
|
arguments: [~, App\Entity\Preguntaformulario, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Preguntaformulario } |
||||
|
public: true |
||||
|
|
||||
|
admin.categorias: |
||||
|
class: App\Admin\CategoriasAdmin |
||||
|
arguments: [~, App\Entity\Categorias, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Categorias } |
||||
|
public: true |
||||
|
|
||||
|
admin.pagina: |
||||
|
class: App\Admin\PaginaAdmin |
||||
|
arguments: [~, App\Entity\Pagina, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Pagina } |
||||
|
public: true |
||||
|
|
||||
|
admin.plantillas: |
||||
|
class: App\Admin\PlantillasAdmin |
||||
|
arguments: [~, App\Entity\Plantillas, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Plantillas } |
||||
|
public: true |
||||
|
|
||||
|
admin.facturaslinea: |
||||
|
class: App\Admin\FacturaslineaAdmin |
||||
|
arguments: [~, App\Entity\Facturaslinea, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Facturaslinea } |
||||
|
public: true |
||||
|
|
||||
|
admin.imagenes: |
||||
|
class: App\Admin\ImagenesAdmin |
||||
|
arguments: [~, App\Entity\Imagenes, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Imagenes } |
||||
|
public: true |
||||
|
|
||||
|
admin.respuestaformulario: |
||||
|
class: App\Admin\RespuestaformularioAdmin |
||||
|
arguments: [~, App\Entity\Respuestaformulario, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Respuestaformulario } |
||||
|
public: true |
||||
|
|
||||
|
admin.comentarios: |
||||
|
class: App\Admin\ComentariosAdmin |
||||
|
arguments: [~, App\Entity\Comentarios, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Comentarios } |
||||
|
public: true |
||||
|
|
||||
|
admin.clientes: |
||||
|
class: App\Admin\ClientesAdmin |
||||
|
arguments: [~, App\Entity\Clientes, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Clientes } |
||||
|
public: true |
||||
|
|
||||
|
admin.direcciones: |
||||
|
class: App\Admin\DireccionesAdmin |
||||
|
arguments: [~, App\Entity\Direcciones, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Direcciones } |
||||
|
public: true |
||||
|
|
||||
|
admin.productovariantes: |
||||
|
class: App\Admin\ProductovariantesAdmin |
||||
|
arguments: [~, App\Entity\Productovariantes, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Productovariantes } |
||||
|
public: true |
||||
|
|
||||
|
admin.menuitem: |
||||
|
class: App\Admin\MenuitemAdmin |
||||
|
arguments: [~, App\Entity\Menuitem, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Menuitem } |
||||
|
public: true |
||||
|
|
||||
|
admin.productosimagen: |
||||
|
class: App\Admin\ProductosimagenAdmin |
||||
|
arguments: [~, App\Entity\Productosimagen, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Productosimagen } |
||||
|
public: true |
||||
|
|
||||
|
admin.presupuestos: |
||||
|
class: App\Admin\PresupuestosAdmin |
||||
|
arguments: [~, App\Entity\Presupuestos, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Presupuestos } |
||||
|
public: true |
||||
|
|
||||
|
admin.bonos: |
||||
|
class: App\Admin\BonosAdmin |
||||
|
arguments: [~, App\Entity\Bonos, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Bonos } |
||||
|
public: true |
||||
|
|
||||
|
admin.idioma: |
||||
|
class: App\Admin\IdiomaAdmin |
||||
|
arguments: [~, App\Entity\Idioma, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Idioma } |
||||
|
public: true |
||||
|
|
||||
|
admin.facturas: |
||||
|
class: App\Admin\FacturasAdmin |
||||
|
arguments: [~, App\Entity\Facturas, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Facturas } |
||||
|
public: true |
||||
|
|
||||
|
admin.modulos: |
||||
|
class: App\Admin\ModulosAdmin |
||||
|
arguments: [~, App\Entity\Modulos, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Modulos } |
||||
|
public: true |
||||
|
|
||||
|
admin.group: |
||||
|
class: App\Admin\GroupAdmin |
||||
|
arguments: [~, App\Entity\Group, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Group } |
||||
|
public: true |
||||
|
|
||||
|
admin.user: |
||||
|
class: App\Admin\UserAdmin |
||||
|
arguments: [~, App\Entity\User, ~] |
||||
|
tags: |
||||
|
- { name: sonata.admin, manager_type: orm, group: admin, label: User } |
||||
|
public: true |
||||
@ -0,0 +1,2 @@ |
|||||
|
php bin/console doctrine:mapping:import "App\Entity" annotation --path=src/Entity |
||||
|
php bin/console make:entity --regenerate App |
||||
@ -0,0 +1,28 @@ |
|||||
|
|
||||
|
bin/console make:sonata:admin "App\\Entity\\Productos" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Formularios" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Tipopregunta" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Configuracion" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Menu" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Preguntaformulario" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Categorias" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Pagina" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Plantillas" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Facturaslinea" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Imagenes" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Respuestaformulario" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Comentarios" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Clientes" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Direcciones" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Productovariantes" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Menuitem" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Productosimagen" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Presupuestos" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Bonos" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Idioma" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Facturas" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Modulos" --no-interaction |
||||
|
|
||||
|
bin/console make:sonata:admin "App\\Entity\\User" --no-interaction |
||||
|
#bin/console make:sonata:admin "App\\Entity\\Profile" --no-interaction |
||||
|
bin/console make:sonata:admin "App\\Entity\\Group" --no-interaction |
||||
@ -0,0 +1,4 @@ |
|||||
|
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" |
||||
|
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" |
||||
|
php composer-setup.php |
||||
|
php -r "unlink('composer-setup.php');" |
||||
@ -0,0 +1,42 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
|
||||
|
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html --> |
||||
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
|
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" |
||||
|
backupGlobals="false" |
||||
|
colors="true" |
||||
|
bootstrap="tests/bootstrap.php" |
||||
|
convertDeprecationsToExceptions="false" |
||||
|
> |
||||
|
<php> |
||||
|
<ini name="display_errors" value="1" /> |
||||
|
<ini name="error_reporting" value="-1" /> |
||||
|
<server name="APP_ENV" value="test" force="true" /> |
||||
|
<server name="SHELL_VERBOSITY" value="-1" /> |
||||
|
<server name="SYMFONY_PHPUNIT_REMOVE" value="" /> |
||||
|
<server name="SYMFONY_PHPUNIT_VERSION" value="9.5" /> |
||||
|
</php> |
||||
|
|
||||
|
<testsuites> |
||||
|
<testsuite name="Project Test Suite"> |
||||
|
<directory>tests</directory> |
||||
|
</testsuite> |
||||
|
</testsuites> |
||||
|
|
||||
|
<coverage processUncoveredFiles="true"> |
||||
|
<include> |
||||
|
<directory suffix=".php">src</directory> |
||||
|
</include> |
||||
|
</coverage> |
||||
|
|
||||
|
<listeners> |
||||
|
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" /> |
||||
|
</listeners> |
||||
|
|
||||
|
<!-- Run `composer require symfony/panther` before enabling this extension --> |
||||
|
<!-- |
||||
|
<extensions> |
||||
|
<extension class="Symfony\Component\Panther\ServerExtension" /> |
||||
|
</extensions> |
||||
|
--> |
||||
|
</phpunit> |
||||
@ -0,0 +1,66 @@ |
|||||
|
# Use the front controller as index file. It serves as a fallback solution when |
||||
|
# every other rewrite/redirect fails (e.g. in an aliased environment without |
||||
|
# mod_rewrite). Additionally, this reduces the matching process for the |
||||
|
# start page (path "/") because otherwise Apache will apply the rewriting rules |
||||
|
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl). |
||||
|
DirectoryIndex index.php |
||||
|
|
||||
|
# By default, Apache does not evaluate symbolic links if you did not enable this |
||||
|
# feature in your server configuration. Uncomment the following line if you |
||||
|
# install assets as symlinks or if you experience problems related to symlinks |
||||
|
# when compiling LESS/Sass/CoffeScript assets. |
||||
|
# Options +FollowSymlinks |
||||
|
|
||||
|
# Disabling MultiViews prevents unwanted negotiation, e.g. "/index" should not resolve |
||||
|
# to the front controller "/index.php" but be rewritten to "/index.php/index". |
||||
|
<IfModule mod_negotiation.c> |
||||
|
Options -MultiViews |
||||
|
</IfModule> |
||||
|
|
||||
|
<IfModule mod_rewrite.c> |
||||
|
RewriteEngine On |
||||
|
|
||||
|
# Determine the RewriteBase automatically and set it as environment variable. |
||||
|
# If you are using Apache aliases to do mass virtual hosting or installed the |
||||
|
# project in a subdirectory, the base path will be prepended to allow proper |
||||
|
# resolution of the index.php file and to redirect to the correct URI. It will |
||||
|
# work in environments without path prefix as well, providing a safe, one-size |
||||
|
# fits all solution. But as you do not need it in this case, you can comment |
||||
|
# the following 2 lines to eliminate the overhead. |
||||
|
RewriteCond %{REQUEST_URI}::$0 ^(/.+)/(.*)::\2$ |
||||
|
RewriteRule .* - [E=BASE:%1] |
||||
|
|
||||
|
# Sets the HTTP_AUTHORIZATION header removed by Apache |
||||
|
RewriteCond %{HTTP:Authorization} .+ |
||||
|
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%0] |
||||
|
|
||||
|
# Redirect to URI without front controller to prevent duplicate content |
||||
|
# (with and without `/index.php`). Only do this redirect on the initial |
||||
|
# rewrite by Apache and not on subsequent cycles. Otherwise we would get an |
||||
|
# endless redirect loop (request -> rewrite to front controller -> |
||||
|
# redirect -> request -> ...). |
||||
|
# So in case you get a "too many redirects" error or you always get redirected |
||||
|
# to the start page because your Apache does not expose the REDIRECT_STATUS |
||||
|
# environment variable, you have 2 choices: |
||||
|
# - disable this feature by commenting the following 2 lines or |
||||
|
# - use Apache >= 2.3.9 and replace all L flags by END flags and remove the |
||||
|
# following RewriteCond (best solution) |
||||
|
RewriteCond %{ENV:REDIRECT_STATUS} ="" |
||||
|
RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L] |
||||
|
|
||||
|
# If the requested filename exists, simply serve it. |
||||
|
# We only want to let Apache serve files and not directories. |
||||
|
# Rewrite all other queries to the front controller. |
||||
|
RewriteCond %{REQUEST_FILENAME} !-f |
||||
|
RewriteRule ^ %{ENV:BASE}/index.php [L] |
||||
|
</IfModule> |
||||
|
|
||||
|
<IfModule !mod_rewrite.c> |
||||
|
<IfModule mod_alias.c> |
||||
|
# When mod_rewrite is not available, we instruct a temporary redirect of |
||||
|
# the start page to the front controller explicitly so that the website |
||||
|
# and the generated links can still be used. |
||||
|
RedirectMatch 307 ^/$ /index.php/ |
||||
|
# RedirectTemp cannot be used instead |
||||
|
</IfModule> |
||||
|
</IfModule> |
||||
@ -0,0 +1,9 @@ |
|||||
|
<?php |
||||
|
|
||||
|
use App\Kernel; |
||||
|
|
||||
|
require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; |
||||
|
|
||||
|
return function (array $context) { |
||||
|
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); |
||||
|
}; |
||||
@ -0,0 +1,61 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class BonosAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('tiempoTotal') |
||||
|
->add('tiempoConsumido') |
||||
|
->add('hash') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('tiempoTotal') |
||||
|
->add('tiempoConsumido') |
||||
|
->add('hash') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('tiempoTotal') |
||||
|
->add('tiempoConsumido') |
||||
|
->add('hash') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('tiempoTotal') |
||||
|
->add('tiempoConsumido') |
||||
|
->add('hash') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,57 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class CategoriasAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,77 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class ClientesAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('apellidos') |
||||
|
->add('nif') |
||||
|
->add('empresa') |
||||
|
->add('email') |
||||
|
->add('username') |
||||
|
->add('password') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('apellidos') |
||||
|
->add('nif') |
||||
|
->add('empresa') |
||||
|
->add('email') |
||||
|
->add('username') |
||||
|
->add('password') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('apellidos') |
||||
|
->add('nif') |
||||
|
->add('empresa') |
||||
|
->add('email') |
||||
|
->add('username') |
||||
|
->add('password') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('apellidos') |
||||
|
->add('nif') |
||||
|
->add('empresa') |
||||
|
->add('email') |
||||
|
->add('username') |
||||
|
->add('password') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,61 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class ComentariosAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('comentario') |
||||
|
->add('fecha') |
||||
|
->add('rating') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('comentario') |
||||
|
->add('fecha') |
||||
|
->add('rating') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('comentario') |
||||
|
->add('fecha') |
||||
|
->add('rating') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('comentario') |
||||
|
->add('fecha') |
||||
|
->add('rating') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,57 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class ConfiguracionAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('clave') |
||||
|
->add('valor') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('clave') |
||||
|
->add('valor') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('clave') |
||||
|
->add('valor') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('clave') |
||||
|
->add('valor') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,69 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class DireccionesAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('dieccion') |
||||
|
->add('cp') |
||||
|
->add('poblacion') |
||||
|
->add('provincia') |
||||
|
->add('pais') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('dieccion') |
||||
|
->add('cp') |
||||
|
->add('poblacion') |
||||
|
->add('provincia') |
||||
|
->add('pais') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('dieccion') |
||||
|
->add('cp') |
||||
|
->add('poblacion') |
||||
|
->add('provincia') |
||||
|
->add('pais') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('dieccion') |
||||
|
->add('cp') |
||||
|
->add('poblacion') |
||||
|
->add('provincia') |
||||
|
->add('pais') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,77 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class FacturasAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('fecha') |
||||
|
->add('estado') |
||||
|
->add('numerofactura') |
||||
|
->add('filepdf') |
||||
|
->add('precio') |
||||
|
->add('impuestos') |
||||
|
->add('total') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('fecha') |
||||
|
->add('estado') |
||||
|
->add('numerofactura') |
||||
|
->add('filepdf') |
||||
|
->add('precio') |
||||
|
->add('impuestos') |
||||
|
->add('total') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('fecha') |
||||
|
->add('estado') |
||||
|
->add('numerofactura') |
||||
|
->add('filepdf') |
||||
|
->add('precio') |
||||
|
->add('impuestos') |
||||
|
->add('total') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('fecha') |
||||
|
->add('estado') |
||||
|
->add('numerofactura') |
||||
|
->add('filepdf') |
||||
|
->add('precio') |
||||
|
->add('impuestos') |
||||
|
->add('total') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,61 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class FacturaslineaAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('cantidad') |
||||
|
->add('precio') |
||||
|
->add('impuestos') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('cantidad') |
||||
|
->add('precio') |
||||
|
->add('impuestos') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('cantidad') |
||||
|
->add('precio') |
||||
|
->add('impuestos') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('cantidad') |
||||
|
->add('precio') |
||||
|
->add('impuestos') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,69 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class FormulariosAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add('alias') |
||||
|
->add('fechaCreacion') |
||||
|
->add('fechaModificacion') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add('alias') |
||||
|
->add('fechaCreacion') |
||||
|
->add('fechaModificacion') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add('alias') |
||||
|
->add('fechaCreacion') |
||||
|
->add('fechaModificacion') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add('alias') |
||||
|
->add('fechaCreacion') |
||||
|
->add('fechaModificacion') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,57 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class GroupAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('name') |
||||
|
->add('roles') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('name') |
||||
|
->add('roles') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('name') |
||||
|
->add('roles') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('name') |
||||
|
->add('roles') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,61 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class IdiomaAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('codigo') |
||||
|
->add('nombre') |
||||
|
->add('activo') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('codigo') |
||||
|
->add('nombre') |
||||
|
->add('activo') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('codigo') |
||||
|
->add('nombre') |
||||
|
->add('activo') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('codigo') |
||||
|
->add('nombre') |
||||
|
->add('activo') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,57 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class ImagenesAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('url') |
||||
|
->add('title') |
||||
|
->add('base64') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('url') |
||||
|
->add('title') |
||||
|
->add('base64') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('url') |
||||
|
->add('title') |
||||
|
->add('base64') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('url') |
||||
|
->add('title') |
||||
|
->add('base64') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,61 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class MenuAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('alias') |
||||
|
->add('titulo') |
||||
|
->add('descripcion') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('alias') |
||||
|
->add('titulo') |
||||
|
->add('descripcion') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('alias') |
||||
|
->add('titulo') |
||||
|
->add('descripcion') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('alias') |
||||
|
->add('titulo') |
||||
|
->add('descripcion') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,69 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class MenuitemAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('posicion') |
||||
|
->add('alias') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add('idImagen') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('posicion') |
||||
|
->add('alias') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add('idImagen') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('posicion') |
||||
|
->add('alias') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add('idImagen') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('posicion') |
||||
|
->add('alias') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add('idImagen') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,73 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class ModulosAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('tipo') |
||||
|
->add('nombre') |
||||
|
->add('tabla') |
||||
|
->add('activo') |
||||
|
->add('fechaCreacion') |
||||
|
->add('fechaModificacion') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('tipo') |
||||
|
->add('nombre') |
||||
|
->add('tabla') |
||||
|
->add('activo') |
||||
|
->add('fechaCreacion') |
||||
|
->add('fechaModificacion') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('tipo') |
||||
|
->add('nombre') |
||||
|
->add('tabla') |
||||
|
->add('activo') |
||||
|
->add('fechaCreacion') |
||||
|
->add('fechaModificacion') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('tipo') |
||||
|
->add('nombre') |
||||
|
->add('tabla') |
||||
|
->add('activo') |
||||
|
->add('fechaCreacion') |
||||
|
->add('fechaModificacion') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,73 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class PaginaAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('url') |
||||
|
->add('titulo') |
||||
|
->add('contenido') |
||||
|
->add('publicada') |
||||
|
->add('fechaCreacion') |
||||
|
->add('fechaActualizacion') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('url') |
||||
|
->add('titulo') |
||||
|
->add('contenido') |
||||
|
->add('publicada') |
||||
|
->add('fechaCreacion') |
||||
|
->add('fechaActualizacion') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('url') |
||||
|
->add('titulo') |
||||
|
->add('contenido') |
||||
|
->add('publicada') |
||||
|
->add('fechaCreacion') |
||||
|
->add('fechaActualizacion') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('url') |
||||
|
->add('titulo') |
||||
|
->add('contenido') |
||||
|
->add('publicada') |
||||
|
->add('fechaCreacion') |
||||
|
->add('fechaActualizacion') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,73 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class PlantillasAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('alias') |
||||
|
->add('twig') |
||||
|
->add('ispdf') |
||||
|
->add('twigpdf') |
||||
|
->add('iscomponent') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('alias') |
||||
|
->add('twig') |
||||
|
->add('ispdf') |
||||
|
->add('twigpdf') |
||||
|
->add('iscomponent') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('alias') |
||||
|
->add('twig') |
||||
|
->add('ispdf') |
||||
|
->add('twigpdf') |
||||
|
->add('iscomponent') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('alias') |
||||
|
->add('twig') |
||||
|
->add('ispdf') |
||||
|
->add('twigpdf') |
||||
|
->add('iscomponent') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,61 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class PreguntaformularioAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('alias') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('alias') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('alias') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('alias') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,53 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class PresupuestosAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('cantidad') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('cantidad') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('cantidad') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('cantidad') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,61 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class ProductosAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add('precio') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add('precio') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add('precio') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add('precio') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,49 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class ProductosimagenAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('idImagen') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('idImagen') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('idImagen') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('idImagen') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,61 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class ProductovariantesAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add('precio') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add('precio') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add('precio') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('descripcion') |
||||
|
->add('precio') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,57 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class RespuestaformularioAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('valor') |
||||
|
->add('fecha') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('valor') |
||||
|
->add('fecha') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('valor') |
||||
|
->add('fecha') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('valor') |
||||
|
->add('fecha') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,57 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class TipopreguntaAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('alias') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('alias') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('alias') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('nombre') |
||||
|
->add('alias') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,101 @@ |
|||||
|
<?php |
||||
|
|
||||
|
declare(strict_types=1); |
||||
|
|
||||
|
namespace App\Admin; |
||||
|
|
||||
|
use Sonata\AdminBundle\Admin\AbstractAdmin; |
||||
|
use Sonata\AdminBundle\Datagrid\DatagridMapper; |
||||
|
use Sonata\AdminBundle\Datagrid\ListMapper; |
||||
|
use Sonata\AdminBundle\Form\FormMapper; |
||||
|
use Sonata\AdminBundle\Show\ShowMapper; |
||||
|
|
||||
|
final class UserAdmin extends AbstractAdmin |
||||
|
{ |
||||
|
|
||||
|
protected function configureDatagridFilters(DatagridMapper $filter): void |
||||
|
{ |
||||
|
$filter |
||||
|
->add('id') |
||||
|
->add('password') |
||||
|
->add('email') |
||||
|
->add('active') |
||||
|
->add('freeze') |
||||
|
->add('lastLogin') |
||||
|
->add('confirmationToken') |
||||
|
->add('passwordRequestedAt') |
||||
|
->add('createdAt') |
||||
|
->add('roles') |
||||
|
->add('firstName') |
||||
|
->add('lastName') |
||||
|
->add('phone') |
||||
|
->add('language') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureListFields(ListMapper $list): void |
||||
|
{ |
||||
|
$list |
||||
|
->add('id') |
||||
|
->add('password') |
||||
|
->add('email') |
||||
|
->add('active') |
||||
|
->add('freeze') |
||||
|
->add('lastLogin') |
||||
|
->add('confirmationToken') |
||||
|
->add('passwordRequestedAt') |
||||
|
->add('createdAt') |
||||
|
->add('roles') |
||||
|
->add('firstName') |
||||
|
->add('lastName') |
||||
|
->add('phone') |
||||
|
->add('language') |
||||
|
->add(ListMapper::NAME_ACTIONS, null, [ |
||||
|
'actions' => [ |
||||
|
'show' => [], |
||||
|
'edit' => [], |
||||
|
'delete' => [], |
||||
|
], |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
protected function configureFormFields(FormMapper $form): void |
||||
|
{ |
||||
|
$form |
||||
|
->add('id') |
||||
|
->add('password') |
||||
|
->add('email') |
||||
|
->add('active') |
||||
|
->add('freeze') |
||||
|
->add('lastLogin') |
||||
|
->add('confirmationToken') |
||||
|
->add('passwordRequestedAt') |
||||
|
->add('createdAt') |
||||
|
->add('roles') |
||||
|
->add('firstName') |
||||
|
->add('lastName') |
||||
|
->add('phone') |
||||
|
->add('language') |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
protected function configureShowFields(ShowMapper $show): void |
||||
|
{ |
||||
|
$show |
||||
|
->add('id') |
||||
|
->add('password') |
||||
|
->add('email') |
||||
|
->add('active') |
||||
|
->add('freeze') |
||||
|
->add('lastLogin') |
||||
|
->add('confirmationToken') |
||||
|
->add('passwordRequestedAt') |
||||
|
->add('createdAt') |
||||
|
->add('roles') |
||||
|
->add('firstName') |
||||
|
->add('lastName') |
||||
|
->add('phone') |
||||
|
->add('language') |
||||
|
; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,17 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\DataFixtures; |
||||
|
|
||||
|
use Doctrine\Bundle\FixturesBundle\Fixture; |
||||
|
use Doctrine\Persistence\ObjectManager; |
||||
|
|
||||
|
class AppFixtures extends Fixture |
||||
|
{ |
||||
|
public function load(ObjectManager $manager) |
||||
|
{ |
||||
|
// $product = new Product();
|
||||
|
// $manager->persist($product);
|
||||
|
|
||||
|
$manager->flush(); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,153 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Bonos |
||||
|
* |
||||
|
* @ORM\Table(name="bonos", uniqueConstraints={@ORM\UniqueConstraint(name="hash", columns={"hash"})}, indexes={@ORM\Index(name="id_producto", columns={"id_producto"}), @ORM\Index(name="id_cliente", columns={"id_cliente"}), @ORM\Index(name="id_factura", columns={"id_factura"})}) |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Bonos |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var \DateTime |
||||
|
* |
||||
|
* @ORM\Column(name="tiempo_total", type="time", nullable=false) |
||||
|
*/ |
||||
|
private $tiempoTotal; |
||||
|
|
||||
|
/** |
||||
|
* @var \DateTime |
||||
|
* |
||||
|
* @ORM\Column(name="tiempo_consumido", type="time", nullable=false) |
||||
|
*/ |
||||
|
private $tiempoConsumido; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="hash", type="string", length=255, nullable=false) |
||||
|
*/ |
||||
|
private $hash; |
||||
|
|
||||
|
/** |
||||
|
* @var \Productos |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Productos") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_producto", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idProducto; |
||||
|
|
||||
|
/** |
||||
|
* @var \Clientes |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Clientes") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_cliente", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idCliente; |
||||
|
|
||||
|
/** |
||||
|
* @var \Facturas |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Facturas") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_factura", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idFactura; |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getTiempoTotal(): ?\DateTimeInterface |
||||
|
{ |
||||
|
return $this->tiempoTotal; |
||||
|
} |
||||
|
|
||||
|
public function setTiempoTotal(\DateTimeInterface $tiempoTotal): self |
||||
|
{ |
||||
|
$this->tiempoTotal = $tiempoTotal; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getTiempoConsumido(): ?\DateTimeInterface |
||||
|
{ |
||||
|
return $this->tiempoConsumido; |
||||
|
} |
||||
|
|
||||
|
public function setTiempoConsumido(\DateTimeInterface $tiempoConsumido): self |
||||
|
{ |
||||
|
$this->tiempoConsumido = $tiempoConsumido; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getHash(): ?string |
||||
|
{ |
||||
|
return $this->hash; |
||||
|
} |
||||
|
|
||||
|
public function setHash(string $hash): self |
||||
|
{ |
||||
|
$this->hash = $hash; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdProducto(): ?Productos |
||||
|
{ |
||||
|
return $this->idProducto; |
||||
|
} |
||||
|
|
||||
|
public function setIdProducto(?Productos $idProducto): self |
||||
|
{ |
||||
|
$this->idProducto = $idProducto; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdCliente(): ?Clientes |
||||
|
{ |
||||
|
return $this->idCliente; |
||||
|
} |
||||
|
|
||||
|
public function setIdCliente(?Clientes $idCliente): self |
||||
|
{ |
||||
|
$this->idCliente = $idCliente; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdFactura(): ?Facturas |
||||
|
{ |
||||
|
return $this->idFactura; |
||||
|
} |
||||
|
|
||||
|
public function setIdFactura(?Facturas $idFactura): self |
||||
|
{ |
||||
|
$this->idFactura = $idFactura; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,133 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\Common\Collections\ArrayCollection; |
||||
|
use Doctrine\Common\Collections\Collection; |
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Categorias |
||||
|
* |
||||
|
* @ORM\Table(name="categorias", indexes={@ORM\Index(name="id_categoria", columns={"id_categoria"})}) |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Categorias |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="nombre", type="text", length=65535, nullable=false) |
||||
|
*/ |
||||
|
private $nombre; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="descripcion", type="text", length=65535, nullable=false) |
||||
|
*/ |
||||
|
private $descripcion; |
||||
|
|
||||
|
/** |
||||
|
* @var \Categorias |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Categorias") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_categoria", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idCategoria; |
||||
|
|
||||
|
/** |
||||
|
* @var \Doctrine\Common\Collections\Collection |
||||
|
* |
||||
|
* @ORM\ManyToMany(targetEntity="Productos", mappedBy="idCategoria") |
||||
|
*/ |
||||
|
private $idProducto; |
||||
|
|
||||
|
/** |
||||
|
* Constructor |
||||
|
*/ |
||||
|
public function __construct() |
||||
|
{ |
||||
|
$this->idProducto = new \Doctrine\Common\Collections\ArrayCollection(); |
||||
|
} |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getNombre(): ?string |
||||
|
{ |
||||
|
return $this->nombre; |
||||
|
} |
||||
|
|
||||
|
public function setNombre(string $nombre): self |
||||
|
{ |
||||
|
$this->nombre = $nombre; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getDescripcion(): ?string |
||||
|
{ |
||||
|
return $this->descripcion; |
||||
|
} |
||||
|
|
||||
|
public function setDescripcion(string $descripcion): self |
||||
|
{ |
||||
|
$this->descripcion = $descripcion; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdCategoria(): ?self |
||||
|
{ |
||||
|
return $this->idCategoria; |
||||
|
} |
||||
|
|
||||
|
public function setIdCategoria(?self $idCategoria): self |
||||
|
{ |
||||
|
$this->idCategoria = $idCategoria; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @return Collection|Productos[] |
||||
|
*/ |
||||
|
public function getIdProducto(): Collection |
||||
|
{ |
||||
|
return $this->idProducto; |
||||
|
} |
||||
|
|
||||
|
public function addIdProducto(Productos $idProducto): self |
||||
|
{ |
||||
|
if (!$this->idProducto->contains($idProducto)) { |
||||
|
$this->idProducto[] = $idProducto; |
||||
|
$idProducto->addIdCategorium($this); |
||||
|
} |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function removeIdProducto(Productos $idProducto): self |
||||
|
{ |
||||
|
if ($this->idProducto->removeElement($idProducto)) { |
||||
|
$idProducto->removeIdCategorium($this); |
||||
|
} |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,163 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Clientes |
||||
|
* |
||||
|
* @ORM\Table(name="clientes") |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Clientes |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="nombre", type="string", length=255, nullable=false) |
||||
|
*/ |
||||
|
private $nombre; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="apellidos", type="string", length=255, nullable=false) |
||||
|
*/ |
||||
|
private $apellidos; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="nif", type="string", length=255, nullable=false) |
||||
|
*/ |
||||
|
private $nif; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="empresa", type="string", length=255, nullable=false) |
||||
|
*/ |
||||
|
private $empresa; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="email", type="string", length=255, nullable=false) |
||||
|
*/ |
||||
|
private $email; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="username", type="string", length=255, nullable=false) |
||||
|
*/ |
||||
|
private $username; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="password", type="text", length=65535, nullable=false) |
||||
|
*/ |
||||
|
private $password; |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getNombre(): ?string |
||||
|
{ |
||||
|
return $this->nombre; |
||||
|
} |
||||
|
|
||||
|
public function setNombre(string $nombre): self |
||||
|
{ |
||||
|
$this->nombre = $nombre; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getApellidos(): ?string |
||||
|
{ |
||||
|
return $this->apellidos; |
||||
|
} |
||||
|
|
||||
|
public function setApellidos(string $apellidos): self |
||||
|
{ |
||||
|
$this->apellidos = $apellidos; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getNif(): ?string |
||||
|
{ |
||||
|
return $this->nif; |
||||
|
} |
||||
|
|
||||
|
public function setNif(string $nif): self |
||||
|
{ |
||||
|
$this->nif = $nif; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getEmpresa(): ?string |
||||
|
{ |
||||
|
return $this->empresa; |
||||
|
} |
||||
|
|
||||
|
public function setEmpresa(string $empresa): self |
||||
|
{ |
||||
|
$this->empresa = $empresa; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getEmail(): ?string |
||||
|
{ |
||||
|
return $this->email; |
||||
|
} |
||||
|
|
||||
|
public function setEmail(string $email): self |
||||
|
{ |
||||
|
$this->email = $email; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getUsername(): ?string |
||||
|
{ |
||||
|
return $this->username; |
||||
|
} |
||||
|
|
||||
|
public function setUsername(string $username): self |
||||
|
{ |
||||
|
$this->username = $username; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getPassword(): ?string |
||||
|
{ |
||||
|
return $this->password; |
||||
|
} |
||||
|
|
||||
|
public function setPassword(string $password): self |
||||
|
{ |
||||
|
$this->password = $password; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,131 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Comentarios |
||||
|
* |
||||
|
* @ORM\Table(name="comentarios", indexes={@ORM\Index(name="id_producto", columns={"id_producto"}), @ORM\Index(name="id_cliente", columns={"id_cliente"})}) |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Comentarios |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="comentario", type="text", length=65535, nullable=false) |
||||
|
*/ |
||||
|
private $comentario; |
||||
|
|
||||
|
/** |
||||
|
* @var \DateTime |
||||
|
* |
||||
|
* @ORM\Column(name="fecha", type="datetime", nullable=false, options={"default"="current_timestamp()"}) |
||||
|
*/ |
||||
|
private $fecha = 'current_timestamp()'; |
||||
|
|
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="rating", type="integer", nullable=false, options={"default"="5"}) |
||||
|
*/ |
||||
|
private $rating = 5; |
||||
|
|
||||
|
/** |
||||
|
* @var \Clientes |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Clientes") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_cliente", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idCliente; |
||||
|
|
||||
|
/** |
||||
|
* @var \Productos |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Productos") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_producto", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idProducto; |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getComentario(): ?string |
||||
|
{ |
||||
|
return $this->comentario; |
||||
|
} |
||||
|
|
||||
|
public function setComentario(string $comentario): self |
||||
|
{ |
||||
|
$this->comentario = $comentario; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getFecha(): ?\DateTimeInterface |
||||
|
{ |
||||
|
return $this->fecha; |
||||
|
} |
||||
|
|
||||
|
public function setFecha(\DateTimeInterface $fecha): self |
||||
|
{ |
||||
|
$this->fecha = $fecha; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getRating(): ?int |
||||
|
{ |
||||
|
return $this->rating; |
||||
|
} |
||||
|
|
||||
|
public function setRating(int $rating): self |
||||
|
{ |
||||
|
$this->rating = $rating; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdCliente(): ?Clientes |
||||
|
{ |
||||
|
return $this->idCliente; |
||||
|
} |
||||
|
|
||||
|
public function setIdCliente(?Clientes $idCliente): self |
||||
|
{ |
||||
|
$this->idCliente = $idCliente; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdProducto(): ?Productos |
||||
|
{ |
||||
|
return $this->idProducto; |
||||
|
} |
||||
|
|
||||
|
public function setIdProducto(?Productos $idProducto): self |
||||
|
{ |
||||
|
$this->idProducto = $idProducto; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,68 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Configuracion |
||||
|
* |
||||
|
* @ORM\Table(name="configuracion") |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Configuracion |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="clave", type="text", length=65535, nullable=false) |
||||
|
*/ |
||||
|
private $clave; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="valor", type="text", length=65535, nullable=false) |
||||
|
*/ |
||||
|
private $valor; |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getClave(): ?string |
||||
|
{ |
||||
|
return $this->clave; |
||||
|
} |
||||
|
|
||||
|
public function setClave(string $clave): self |
||||
|
{ |
||||
|
$this->clave = $clave; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getValor(): ?string |
||||
|
{ |
||||
|
return $this->valor; |
||||
|
} |
||||
|
|
||||
|
public function setValor(string $valor): self |
||||
|
{ |
||||
|
$this->valor = $valor; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,147 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Direcciones |
||||
|
* |
||||
|
* @ORM\Table(name="direcciones", indexes={@ORM\Index(name="id_cliente", columns={"id_cliente"})}) |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Direcciones |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="dieccion", type="text", length=65535, nullable=false) |
||||
|
*/ |
||||
|
private $dieccion; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="cp", type="string", length=10, nullable=false) |
||||
|
*/ |
||||
|
private $cp; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="poblacion", type="string", length=255, nullable=false) |
||||
|
*/ |
||||
|
private $poblacion; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="provincia", type="string", length=255, nullable=false) |
||||
|
*/ |
||||
|
private $provincia; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="pais", type="string", length=10, nullable=false) |
||||
|
*/ |
||||
|
private $pais; |
||||
|
|
||||
|
/** |
||||
|
* @var \Clientes |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Clientes") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_cliente", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idCliente; |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getDieccion(): ?string |
||||
|
{ |
||||
|
return $this->dieccion; |
||||
|
} |
||||
|
|
||||
|
public function setDieccion(string $dieccion): self |
||||
|
{ |
||||
|
$this->dieccion = $dieccion; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getCp(): ?string |
||||
|
{ |
||||
|
return $this->cp; |
||||
|
} |
||||
|
|
||||
|
public function setCp(string $cp): self |
||||
|
{ |
||||
|
$this->cp = $cp; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getPoblacion(): ?string |
||||
|
{ |
||||
|
return $this->poblacion; |
||||
|
} |
||||
|
|
||||
|
public function setPoblacion(string $poblacion): self |
||||
|
{ |
||||
|
$this->poblacion = $poblacion; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getProvincia(): ?string |
||||
|
{ |
||||
|
return $this->provincia; |
||||
|
} |
||||
|
|
||||
|
public function setProvincia(string $provincia): self |
||||
|
{ |
||||
|
$this->provincia = $provincia; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getPais(): ?string |
||||
|
{ |
||||
|
return $this->pais; |
||||
|
} |
||||
|
|
||||
|
public function setPais(string $pais): self |
||||
|
{ |
||||
|
$this->pais = $pais; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdCliente(): ?Clientes |
||||
|
{ |
||||
|
return $this->idCliente; |
||||
|
} |
||||
|
|
||||
|
public function setIdCliente(?Clientes $idCliente): self |
||||
|
{ |
||||
|
$this->idCliente = $idCliente; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,185 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Facturas |
||||
|
* |
||||
|
* @ORM\Table(name="facturas", indexes={@ORM\Index(name="id_cliente", columns={"id_cliente"})}) |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Facturas |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var \DateTime |
||||
|
* |
||||
|
* @ORM\Column(name="fecha", type="datetime", nullable=false, options={"default"="current_timestamp()"}) |
||||
|
*/ |
||||
|
private $fecha = 'current_timestamp()'; |
||||
|
|
||||
|
/** |
||||
|
* @var bool |
||||
|
* |
||||
|
* @ORM\Column(name="estado", type="boolean", nullable=false, options={"comment"="Estado pendiente o pagado."}) |
||||
|
*/ |
||||
|
private $estado = '0'; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="numerofactura", type="string", length=10, nullable=false) |
||||
|
*/ |
||||
|
private $numerofactura; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="filepdf", type="text", length=65535, nullable=false) |
||||
|
*/ |
||||
|
private $filepdf; |
||||
|
|
||||
|
/** |
||||
|
* @var float |
||||
|
* |
||||
|
* @ORM\Column(name="precio", type="float", precision=10, scale=0, nullable=false) |
||||
|
*/ |
||||
|
private $precio; |
||||
|
|
||||
|
/** |
||||
|
* @var float |
||||
|
* |
||||
|
* @ORM\Column(name="impuestos", type="float", precision=10, scale=0, nullable=false, options={"comment"="total de los impuestos en euros"}) |
||||
|
*/ |
||||
|
private $impuestos; |
||||
|
|
||||
|
/** |
||||
|
* @var float |
||||
|
* |
||||
|
* @ORM\Column(name="total", type="float", precision=10, scale=0, nullable=false) |
||||
|
*/ |
||||
|
private $total; |
||||
|
|
||||
|
/** |
||||
|
* @var \Clientes |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Clientes") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_cliente", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idCliente; |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getFecha(): ?\DateTimeInterface |
||||
|
{ |
||||
|
return $this->fecha; |
||||
|
} |
||||
|
|
||||
|
public function setFecha(\DateTimeInterface $fecha): self |
||||
|
{ |
||||
|
$this->fecha = $fecha; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getEstado(): ?bool |
||||
|
{ |
||||
|
return $this->estado; |
||||
|
} |
||||
|
|
||||
|
public function setEstado(bool $estado): self |
||||
|
{ |
||||
|
$this->estado = $estado; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getNumerofactura(): ?string |
||||
|
{ |
||||
|
return $this->numerofactura; |
||||
|
} |
||||
|
|
||||
|
public function setNumerofactura(string $numerofactura): self |
||||
|
{ |
||||
|
$this->numerofactura = $numerofactura; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getFilepdf(): ?string |
||||
|
{ |
||||
|
return $this->filepdf; |
||||
|
} |
||||
|
|
||||
|
public function setFilepdf(string $filepdf): self |
||||
|
{ |
||||
|
$this->filepdf = $filepdf; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getPrecio(): ?float |
||||
|
{ |
||||
|
return $this->precio; |
||||
|
} |
||||
|
|
||||
|
public function setPrecio(float $precio): self |
||||
|
{ |
||||
|
$this->precio = $precio; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getImpuestos(): ?float |
||||
|
{ |
||||
|
return $this->impuestos; |
||||
|
} |
||||
|
|
||||
|
public function setImpuestos(float $impuestos): self |
||||
|
{ |
||||
|
$this->impuestos = $impuestos; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getTotal(): ?float |
||||
|
{ |
||||
|
return $this->total; |
||||
|
} |
||||
|
|
||||
|
public function setTotal(float $total): self |
||||
|
{ |
||||
|
$this->total = $total; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdCliente(): ?Clientes |
||||
|
{ |
||||
|
return $this->idCliente; |
||||
|
} |
||||
|
|
||||
|
public function setIdCliente(?Clientes $idCliente): self |
||||
|
{ |
||||
|
$this->idCliente = $idCliente; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,153 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Facturaslinea |
||||
|
* |
||||
|
* @ORM\Table(name="facturaslinea", indexes={@ORM\Index(name="id_variante", columns={"id_variante"}), @ORM\Index(name="id_factura", columns={"id_factura"}), @ORM\Index(name="id_producto", columns={"id_producto"})}) |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Facturaslinea |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="cantidad", type="integer", nullable=false, options={"comment"="Cantidad de productos"}) |
||||
|
*/ |
||||
|
private $cantidad; |
||||
|
|
||||
|
/** |
||||
|
* @var float |
||||
|
* |
||||
|
* @ORM\Column(name="precio", type="float", precision=10, scale=0, nullable=false, options={"comment"="Precio unitario en el momento de la compra"}) |
||||
|
*/ |
||||
|
private $precio; |
||||
|
|
||||
|
/** |
||||
|
* @var float |
||||
|
* |
||||
|
* @ORM\Column(name="impuestos", type="float", precision=10, scale=0, nullable=false, options={"comment"="Porcentaje de impuestos"}) |
||||
|
*/ |
||||
|
private $impuestos; |
||||
|
|
||||
|
/** |
||||
|
* @var \Productos |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Productos") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_producto", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idProducto; |
||||
|
|
||||
|
/** |
||||
|
* @var \Facturas |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Facturas") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_factura", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idFactura; |
||||
|
|
||||
|
/** |
||||
|
* @var \Productovariantes |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Productovariantes") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_variante", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idVariante; |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getCantidad(): ?int |
||||
|
{ |
||||
|
return $this->cantidad; |
||||
|
} |
||||
|
|
||||
|
public function setCantidad(int $cantidad): self |
||||
|
{ |
||||
|
$this->cantidad = $cantidad; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getPrecio(): ?float |
||||
|
{ |
||||
|
return $this->precio; |
||||
|
} |
||||
|
|
||||
|
public function setPrecio(float $precio): self |
||||
|
{ |
||||
|
$this->precio = $precio; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getImpuestos(): ?float |
||||
|
{ |
||||
|
return $this->impuestos; |
||||
|
} |
||||
|
|
||||
|
public function setImpuestos(float $impuestos): self |
||||
|
{ |
||||
|
$this->impuestos = $impuestos; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdProducto(): ?Productos |
||||
|
{ |
||||
|
return $this->idProducto; |
||||
|
} |
||||
|
|
||||
|
public function setIdProducto(?Productos $idProducto): self |
||||
|
{ |
||||
|
$this->idProducto = $idProducto; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdFactura(): ?Facturas |
||||
|
{ |
||||
|
return $this->idFactura; |
||||
|
} |
||||
|
|
||||
|
public function setIdFactura(?Facturas $idFactura): self |
||||
|
{ |
||||
|
$this->idFactura = $idFactura; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdVariante(): ?Productovariantes |
||||
|
{ |
||||
|
return $this->idVariante; |
||||
|
} |
||||
|
|
||||
|
public function setIdVariante(?Productovariantes $idVariante): self |
||||
|
{ |
||||
|
$this->idVariante = $idVariante; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,147 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Formularios |
||||
|
* |
||||
|
* @ORM\Table(name="formularios", indexes={@ORM\Index(name="id_plantilla", columns={"id_plantilla"})}) |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Formularios |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="nombre", type="text", length=65535, nullable=false) |
||||
|
*/ |
||||
|
private $nombre; |
||||
|
|
||||
|
/** |
||||
|
* @var string|null |
||||
|
* |
||||
|
* @ORM\Column(name="descripcion", type="text", length=65535, nullable=true, options={"default"="NULL"}) |
||||
|
*/ |
||||
|
private $descripcion = 'NULL'; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="alias", type="string", length=255, nullable=false) |
||||
|
*/ |
||||
|
private $alias; |
||||
|
|
||||
|
/** |
||||
|
* @var \DateTime |
||||
|
* |
||||
|
* @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="current_timestamp()"}) |
||||
|
*/ |
||||
|
private $fechaCreacion = 'current_timestamp()'; |
||||
|
|
||||
|
/** |
||||
|
* @var \DateTime |
||||
|
* |
||||
|
* @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false, options={"default"="current_timestamp()"}) |
||||
|
*/ |
||||
|
private $fechaModificacion = 'current_timestamp()'; |
||||
|
|
||||
|
/** |
||||
|
* @var \Plantillas |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Plantillas") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_plantilla", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idPlantilla; |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getNombre(): ?string |
||||
|
{ |
||||
|
return $this->nombre; |
||||
|
} |
||||
|
|
||||
|
public function setNombre(string $nombre): self |
||||
|
{ |
||||
|
$this->nombre = $nombre; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getDescripcion(): ?string |
||||
|
{ |
||||
|
return $this->descripcion; |
||||
|
} |
||||
|
|
||||
|
public function setDescripcion(?string $descripcion): self |
||||
|
{ |
||||
|
$this->descripcion = $descripcion; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getAlias(): ?string |
||||
|
{ |
||||
|
return $this->alias; |
||||
|
} |
||||
|
|
||||
|
public function setAlias(string $alias): self |
||||
|
{ |
||||
|
$this->alias = $alias; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getFechaCreacion(): ?\DateTimeInterface |
||||
|
{ |
||||
|
return $this->fechaCreacion; |
||||
|
} |
||||
|
|
||||
|
public function setFechaCreacion(\DateTimeInterface $fechaCreacion): self |
||||
|
{ |
||||
|
$this->fechaCreacion = $fechaCreacion; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getFechaModificacion(): ?\DateTimeInterface |
||||
|
{ |
||||
|
return $this->fechaModificacion; |
||||
|
} |
||||
|
|
||||
|
public function setFechaModificacion(\DateTimeInterface $fechaModificacion): self |
||||
|
{ |
||||
|
$this->fechaModificacion = $fechaModificacion; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdPlantilla(): ?Plantillas |
||||
|
{ |
||||
|
return $this->idPlantilla; |
||||
|
} |
||||
|
|
||||
|
public function setIdPlantilla(?Plantillas $idPlantilla): self |
||||
|
{ |
||||
|
$this->idPlantilla = $idPlantilla; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,18 @@ |
|||||
|
<?php |
||||
|
// src/Entity/Group.php
|
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; |
||||
|
use Pd\UserBundle\Model\Group as BaseGroup; |
||||
|
|
||||
|
/** |
||||
|
* @ORM\Table(name="user_group") |
||||
|
* @ORM\Entity |
||||
|
* @UniqueEntity(fields="name", message="group_already_taken") |
||||
|
*/ |
||||
|
class Group extends BaseGroup |
||||
|
{ |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,87 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Idioma |
||||
|
* |
||||
|
* @ORM\Table(name="idioma") |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Idioma |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="codigo", type="string", length=3, nullable=false) |
||||
|
*/ |
||||
|
private $codigo; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="nombre", type="string", length=255, nullable=false) |
||||
|
*/ |
||||
|
private $nombre; |
||||
|
|
||||
|
/** |
||||
|
* @var bool |
||||
|
* |
||||
|
* @ORM\Column(name="activo", type="boolean", nullable=false) |
||||
|
*/ |
||||
|
private $activo = '0'; |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getCodigo(): ?string |
||||
|
{ |
||||
|
return $this->codigo; |
||||
|
} |
||||
|
|
||||
|
public function setCodigo(string $codigo): self |
||||
|
{ |
||||
|
$this->codigo = $codigo; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getNombre(): ?string |
||||
|
{ |
||||
|
return $this->nombre; |
||||
|
} |
||||
|
|
||||
|
public function setNombre(string $nombre): self |
||||
|
{ |
||||
|
$this->nombre = $nombre; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getActivo(): ?bool |
||||
|
{ |
||||
|
return $this->activo; |
||||
|
} |
||||
|
|
||||
|
public function setActivo(bool $activo): self |
||||
|
{ |
||||
|
$this->activo = $activo; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,97 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Imagenes |
||||
|
* |
||||
|
* @ORM\Table(name="imagenes") |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Imagenes |
||||
|
{ |
||||
|
/** |
||||
|
* @var string|null |
||||
|
* |
||||
|
* @ORM\Column(name="url", type="text", length=65535, nullable=true, options={"default"="NULL"}) |
||||
|
*/ |
||||
|
private $url = 'NULL'; |
||||
|
|
||||
|
/** |
||||
|
* @var string|null |
||||
|
* |
||||
|
* @ORM\Column(name="title", type="text", length=65535, nullable=true, options={"default"="NULL"}) |
||||
|
*/ |
||||
|
private $title = 'NULL'; |
||||
|
|
||||
|
/** |
||||
|
* @var string|null |
||||
|
* |
||||
|
* @ORM\Column(name="base64", type="text", length=65535, nullable=true, options={"default"="NULL"}) |
||||
|
*/ |
||||
|
private $base64 = 'NULL'; |
||||
|
|
||||
|
/** |
||||
|
* @var \Productosimagen |
||||
|
* |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="NONE") |
||||
|
* @ORM\OneToOne(targetEntity="Productosimagen") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id", referencedColumnName="id_imagen") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
public function getUrl(): ?string |
||||
|
{ |
||||
|
return $this->url; |
||||
|
} |
||||
|
|
||||
|
public function setUrl(?string $url): self |
||||
|
{ |
||||
|
$this->url = $url; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getTitle(): ?string |
||||
|
{ |
||||
|
return $this->title; |
||||
|
} |
||||
|
|
||||
|
public function setTitle(?string $title): self |
||||
|
{ |
||||
|
$this->title = $title; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getBase64(): ?string |
||||
|
{ |
||||
|
return $this->base64; |
||||
|
} |
||||
|
|
||||
|
public function setBase64(?string $base64): self |
||||
|
{ |
||||
|
$this->base64 = $base64; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getId(): ?Productosimagen |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function setId(?Productosimagen $id): self |
||||
|
{ |
||||
|
$this->id = $id; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,87 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Menu |
||||
|
* |
||||
|
* @ORM\Table(name="menu") |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Menu |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="alias", type="integer", nullable=false) |
||||
|
*/ |
||||
|
private $alias; |
||||
|
|
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="titulo", type="integer", nullable=false) |
||||
|
*/ |
||||
|
private $titulo; |
||||
|
|
||||
|
/** |
||||
|
* @var int|null |
||||
|
* |
||||
|
* @ORM\Column(name="descripcion", type="integer", nullable=true, options={"default"="NULL"}) |
||||
|
*/ |
||||
|
private $descripcion = NULL; |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getAlias(): ?int |
||||
|
{ |
||||
|
return $this->alias; |
||||
|
} |
||||
|
|
||||
|
public function setAlias(int $alias): self |
||||
|
{ |
||||
|
$this->alias = $alias; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getTitulo(): ?int |
||||
|
{ |
||||
|
return $this->titulo; |
||||
|
} |
||||
|
|
||||
|
public function setTitulo(int $titulo): self |
||||
|
{ |
||||
|
$this->titulo = $titulo; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getDescripcion(): ?int |
||||
|
{ |
||||
|
return $this->descripcion; |
||||
|
} |
||||
|
|
||||
|
public function setDescripcion(?int $descripcion): self |
||||
|
{ |
||||
|
$this->descripcion = $descripcion; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,147 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Menuitem |
||||
|
* |
||||
|
* @ORM\Table(name="menuitem", indexes={@ORM\Index(name="id_imagen", columns={"id_imagen"}), @ORM\Index(name="id_menu", columns={"id_menu"})}) |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Menuitem |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="posicion", type="integer", nullable=false) |
||||
|
*/ |
||||
|
private $posicion; |
||||
|
|
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="alias", type="integer", nullable=false) |
||||
|
*/ |
||||
|
private $alias; |
||||
|
|
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="nombre", type="integer", nullable=false) |
||||
|
*/ |
||||
|
private $nombre; |
||||
|
|
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="descripcion", type="integer", nullable=false) |
||||
|
*/ |
||||
|
private $descripcion; |
||||
|
|
||||
|
/** |
||||
|
* @var int|null |
||||
|
* |
||||
|
* @ORM\Column(name="id_imagen", type="integer", nullable=true, options={"default"="NULL"}) |
||||
|
*/ |
||||
|
private $idImagen = NULL; |
||||
|
|
||||
|
/** |
||||
|
* @var \Menu |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Menu") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_menu", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idMenu; |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getPosicion(): ?int |
||||
|
{ |
||||
|
return $this->posicion; |
||||
|
} |
||||
|
|
||||
|
public function setPosicion(int $posicion): self |
||||
|
{ |
||||
|
$this->posicion = $posicion; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getAlias(): ?int |
||||
|
{ |
||||
|
return $this->alias; |
||||
|
} |
||||
|
|
||||
|
public function setAlias(int $alias): self |
||||
|
{ |
||||
|
$this->alias = $alias; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getNombre(): ?int |
||||
|
{ |
||||
|
return $this->nombre; |
||||
|
} |
||||
|
|
||||
|
public function setNombre(int $nombre): self |
||||
|
{ |
||||
|
$this->nombre = $nombre; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getDescripcion(): ?int |
||||
|
{ |
||||
|
return $this->descripcion; |
||||
|
} |
||||
|
|
||||
|
public function setDescripcion(int $descripcion): self |
||||
|
{ |
||||
|
$this->descripcion = $descripcion; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdImagen(): ?int |
||||
|
{ |
||||
|
return $this->idImagen; |
||||
|
} |
||||
|
|
||||
|
public function setIdImagen(?int $idImagen): self |
||||
|
{ |
||||
|
$this->idImagen = $idImagen; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdMenu(): ?Menu |
||||
|
{ |
||||
|
return $this->idMenu; |
||||
|
} |
||||
|
|
||||
|
public function setIdMenu(?Menu $idMenu): self |
||||
|
{ |
||||
|
$this->idMenu = $idMenu; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,144 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Modulos |
||||
|
* |
||||
|
* @ORM\Table(name="modulos") |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Modulos |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="tipo", type="string", length=20, nullable=false) |
||||
|
*/ |
||||
|
private $tipo; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="nombre", type="string", length=255, nullable=false) |
||||
|
*/ |
||||
|
private $nombre; |
||||
|
|
||||
|
/** |
||||
|
* @var string|null |
||||
|
* |
||||
|
* @ORM\Column(name="tabla", type="string", length=255, nullable=true, options={"default"="NULL"}) |
||||
|
*/ |
||||
|
private $tabla = 'NULL'; |
||||
|
|
||||
|
/** |
||||
|
* @var bool |
||||
|
* |
||||
|
* @ORM\Column(name="activo", type="boolean", nullable=false) |
||||
|
*/ |
||||
|
private $activo = '0'; |
||||
|
|
||||
|
/** |
||||
|
* @var \DateTime |
||||
|
* |
||||
|
* @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="current_timestamp()"}) |
||||
|
*/ |
||||
|
private $fechaCreacion = 'current_timestamp()'; |
||||
|
|
||||
|
/** |
||||
|
* @var \DateTime |
||||
|
* |
||||
|
* @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false, options={"default"="current_timestamp()"}) |
||||
|
*/ |
||||
|
private $fechaModificacion = 'current_timestamp()'; |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getTipo(): ?string |
||||
|
{ |
||||
|
return $this->tipo; |
||||
|
} |
||||
|
|
||||
|
public function setTipo(string $tipo): self |
||||
|
{ |
||||
|
$this->tipo = $tipo; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getNombre(): ?string |
||||
|
{ |
||||
|
return $this->nombre; |
||||
|
} |
||||
|
|
||||
|
public function setNombre(string $nombre): self |
||||
|
{ |
||||
|
$this->nombre = $nombre; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getTabla(): ?string |
||||
|
{ |
||||
|
return $this->tabla; |
||||
|
} |
||||
|
|
||||
|
public function setTabla(?string $tabla): self |
||||
|
{ |
||||
|
$this->tabla = $tabla; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getActivo(): ?bool |
||||
|
{ |
||||
|
return $this->activo; |
||||
|
} |
||||
|
|
||||
|
public function setActivo(bool $activo): self |
||||
|
{ |
||||
|
$this->activo = $activo; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getFechaCreacion(): ?\DateTimeInterface |
||||
|
{ |
||||
|
return $this->fechaCreacion; |
||||
|
} |
||||
|
|
||||
|
public function setFechaCreacion(\DateTimeInterface $fechaCreacion): self |
||||
|
{ |
||||
|
$this->fechaCreacion = $fechaCreacion; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getFechaModificacion(): ?\DateTimeInterface |
||||
|
{ |
||||
|
return $this->fechaModificacion; |
||||
|
} |
||||
|
|
||||
|
public function setFechaModificacion(\DateTimeInterface $fechaModificacion): self |
||||
|
{ |
||||
|
$this->fechaModificacion = $fechaModificacion; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,166 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Pagina |
||||
|
* |
||||
|
* @ORM\Table(name="pagina", indexes={@ORM\Index(name="id_plantilla", columns={"id_plantilla"})}) |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Pagina |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="url", type="integer", nullable=false) |
||||
|
*/ |
||||
|
private $url; |
||||
|
|
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="titulo", type="integer", nullable=false) |
||||
|
*/ |
||||
|
private $titulo; |
||||
|
|
||||
|
/** |
||||
|
* @var int|null |
||||
|
* |
||||
|
* @ORM\Column(name="contenido", type="integer", nullable=true, options={"default"="NULL"}) |
||||
|
*/ |
||||
|
private $contenido = NULL; |
||||
|
|
||||
|
/** |
||||
|
* @var bool |
||||
|
* |
||||
|
* @ORM\Column(name="publicada", type="boolean", nullable=false) |
||||
|
*/ |
||||
|
private $publicada = '0'; |
||||
|
|
||||
|
/** |
||||
|
* @var \DateTime |
||||
|
* |
||||
|
* @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="current_timestamp()"}) |
||||
|
*/ |
||||
|
private $fechaCreacion = 'current_timestamp()'; |
||||
|
|
||||
|
/** |
||||
|
* @var \DateTime |
||||
|
* |
||||
|
* @ORM\Column(name="fecha_actualizacion", type="datetime", nullable=false, options={"default"="current_timestamp()"}) |
||||
|
*/ |
||||
|
private $fechaActualizacion = 'current_timestamp()'; |
||||
|
|
||||
|
/** |
||||
|
* @var \Plantillas |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Plantillas") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_plantilla", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idPlantilla; |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getUrl(): ?int |
||||
|
{ |
||||
|
return $this->url; |
||||
|
} |
||||
|
|
||||
|
public function setUrl(int $url): self |
||||
|
{ |
||||
|
$this->url = $url; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getTitulo(): ?int |
||||
|
{ |
||||
|
return $this->titulo; |
||||
|
} |
||||
|
|
||||
|
public function setTitulo(int $titulo): self |
||||
|
{ |
||||
|
$this->titulo = $titulo; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getContenido(): ?int |
||||
|
{ |
||||
|
return $this->contenido; |
||||
|
} |
||||
|
|
||||
|
public function setContenido(?int $contenido): self |
||||
|
{ |
||||
|
$this->contenido = $contenido; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getPublicada(): ?bool |
||||
|
{ |
||||
|
return $this->publicada; |
||||
|
} |
||||
|
|
||||
|
public function setPublicada(bool $publicada): self |
||||
|
{ |
||||
|
$this->publicada = $publicada; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getFechaCreacion(): ?\DateTimeInterface |
||||
|
{ |
||||
|
return $this->fechaCreacion; |
||||
|
} |
||||
|
|
||||
|
public function setFechaCreacion(\DateTimeInterface $fechaCreacion): self |
||||
|
{ |
||||
|
$this->fechaCreacion = $fechaCreacion; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getFechaActualizacion(): ?\DateTimeInterface |
||||
|
{ |
||||
|
return $this->fechaActualizacion; |
||||
|
} |
||||
|
|
||||
|
public function setFechaActualizacion(\DateTimeInterface $fechaActualizacion): self |
||||
|
{ |
||||
|
$this->fechaActualizacion = $fechaActualizacion; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdPlantilla(): ?Plantillas |
||||
|
{ |
||||
|
return $this->idPlantilla; |
||||
|
} |
||||
|
|
||||
|
public function setIdPlantilla(?Plantillas $idPlantilla): self |
||||
|
{ |
||||
|
$this->idPlantilla = $idPlantilla; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,144 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Plantillas |
||||
|
* |
||||
|
* @ORM\Table(name="plantillas") |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Plantillas |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="nombre", type="string", length=255, nullable=false) |
||||
|
*/ |
||||
|
private $nombre; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="alias", type="string", length=255, nullable=false) |
||||
|
*/ |
||||
|
private $alias; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="twig", type="text", length=65535, nullable=false) |
||||
|
*/ |
||||
|
private $twig; |
||||
|
|
||||
|
/** |
||||
|
* @var bool |
||||
|
* |
||||
|
* @ORM\Column(name="ispdf", type="boolean", nullable=false) |
||||
|
*/ |
||||
|
private $ispdf = '0'; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="twigpdf", type="text", length=65535, nullable=false) |
||||
|
*/ |
||||
|
private $twigpdf; |
||||
|
|
||||
|
/** |
||||
|
* @var bool |
||||
|
* |
||||
|
* @ORM\Column(name="iscomponent", type="boolean", nullable=false) |
||||
|
*/ |
||||
|
private $iscomponent = '0'; |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getNombre(): ?string |
||||
|
{ |
||||
|
return $this->nombre; |
||||
|
} |
||||
|
|
||||
|
public function setNombre(string $nombre): self |
||||
|
{ |
||||
|
$this->nombre = $nombre; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getAlias(): ?string |
||||
|
{ |
||||
|
return $this->alias; |
||||
|
} |
||||
|
|
||||
|
public function setAlias(string $alias): self |
||||
|
{ |
||||
|
$this->alias = $alias; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getTwig(): ?string |
||||
|
{ |
||||
|
return $this->twig; |
||||
|
} |
||||
|
|
||||
|
public function setTwig(string $twig): self |
||||
|
{ |
||||
|
$this->twig = $twig; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIspdf(): ?bool |
||||
|
{ |
||||
|
return $this->ispdf; |
||||
|
} |
||||
|
|
||||
|
public function setIspdf(bool $ispdf): self |
||||
|
{ |
||||
|
$this->ispdf = $ispdf; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getTwigpdf(): ?string |
||||
|
{ |
||||
|
return $this->twigpdf; |
||||
|
} |
||||
|
|
||||
|
public function setTwigpdf(string $twigpdf): self |
||||
|
{ |
||||
|
$this->twigpdf = $twigpdf; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIscomponent(): ?bool |
||||
|
{ |
||||
|
return $this->iscomponent; |
||||
|
} |
||||
|
|
||||
|
public function setIscomponent(bool $iscomponent): self |
||||
|
{ |
||||
|
$this->iscomponent = $iscomponent; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,109 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Preguntaformulario |
||||
|
* |
||||
|
* @ORM\Table(name="preguntaformulario", indexes={@ORM\Index(name="id_tipo", columns={"id_tipo"})}) |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Preguntaformulario |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="alias", type="string", length=255, nullable=false) |
||||
|
*/ |
||||
|
private $alias; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="nombre", type="text", length=65535, nullable=false) |
||||
|
*/ |
||||
|
private $nombre; |
||||
|
|
||||
|
/** |
||||
|
* @var string |
||||
|
* |
||||
|
* @ORM\Column(name="descripcion", type="text", length=65535, nullable=false) |
||||
|
*/ |
||||
|
private $descripcion; |
||||
|
|
||||
|
/** |
||||
|
* @var \Tipopregunta |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Tipopregunta") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_tipo", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idTipo; |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getAlias(): ?string |
||||
|
{ |
||||
|
return $this->alias; |
||||
|
} |
||||
|
|
||||
|
public function setAlias(string $alias): self |
||||
|
{ |
||||
|
$this->alias = $alias; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getNombre(): ?string |
||||
|
{ |
||||
|
return $this->nombre; |
||||
|
} |
||||
|
|
||||
|
public function setNombre(string $nombre): self |
||||
|
{ |
||||
|
$this->nombre = $nombre; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getDescripcion(): ?string |
||||
|
{ |
||||
|
return $this->descripcion; |
||||
|
} |
||||
|
|
||||
|
public function setDescripcion(string $descripcion): self |
||||
|
{ |
||||
|
$this->descripcion = $descripcion; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdTipo(): ?Tipopregunta |
||||
|
{ |
||||
|
return $this->idTipo; |
||||
|
} |
||||
|
|
||||
|
public function setIdTipo(?Tipopregunta $idTipo): self |
||||
|
{ |
||||
|
$this->idTipo = $idTipo; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,115 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace App\Entity; |
||||
|
|
||||
|
use Doctrine\ORM\Mapping as ORM; |
||||
|
|
||||
|
/** |
||||
|
* Presupuestos |
||||
|
* |
||||
|
* @ORM\Table(name="presupuestos", indexes={@ORM\Index(name="id_producto", columns={"id_producto"}), @ORM\Index(name="id_variante", columns={"id_variante"}), @ORM\Index(name="id_cliente", columns={"id_cliente"})}) |
||||
|
* @ORM\Entity |
||||
|
*/ |
||||
|
class Presupuestos |
||||
|
{ |
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="id", type="integer", nullable=false) |
||||
|
* @ORM\Id |
||||
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
||||
|
*/ |
||||
|
private $id; |
||||
|
|
||||
|
/** |
||||
|
* @var int |
||||
|
* |
||||
|
* @ORM\Column(name="cantidad", type="integer", nullable=false) |
||||
|
*/ |
||||
|
private $cantidad; |
||||
|
|
||||
|
/** |
||||
|
* @var \Productos |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Productos") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_producto", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idProducto; |
||||
|
|
||||
|
/** |
||||
|
* @var \Clientes |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Clientes") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_cliente", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idCliente; |
||||
|
|
||||
|
/** |
||||
|
* @var \Productovariantes |
||||
|
* |
||||
|
* @ORM\ManyToOne(targetEntity="Productovariantes") |
||||
|
* @ORM\JoinColumns({ |
||||
|
* @ORM\JoinColumn(name="id_variante", referencedColumnName="id") |
||||
|
* }) |
||||
|
*/ |
||||
|
private $idVariante; |
||||
|
|
||||
|
public function getId(): ?int |
||||
|
{ |
||||
|
return $this->id; |
||||
|
} |
||||
|
|
||||
|
public function getCantidad(): ?int |
||||
|
{ |
||||
|
return $this->cantidad; |
||||
|
} |
||||
|
|
||||
|
public function setCantidad(int $cantidad): self |
||||
|
{ |
||||
|
$this->cantidad = $cantidad; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdProducto(): ?Productos |
||||
|
{ |
||||
|
return $this->idProducto; |
||||
|
} |
||||
|
|
||||
|
public function setIdProducto(?Productos $idProducto): self |
||||
|
{ |
||||
|
$this->idProducto = $idProducto; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdCliente(): ?Clientes |
||||
|
{ |
||||
|
return $this->idCliente; |
||||
|
} |
||||
|
|
||||
|
public function setIdCliente(?Clientes $idCliente): self |
||||
|
{ |
||||
|
$this->idCliente = $idCliente; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
public function getIdVariante(): ?Productovariantes |
||||
|
{ |
||||
|
return $this->idVariante; |
||||
|
} |
||||
|
|
||||
|
public function setIdVariante(?Productovariantes $idVariante): self |
||||
|
{ |
||||
|
$this->idVariante = $idVariante; |
||||
|
|
||||
|
return $this; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue