Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Pôle IS
Bundles Symfony 2
ng-model-generator-bundle
Commits
7b236557
Commit
7b236557
authored
May 07, 2019
by
Guillaume Perréal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CS.
parent
0168fd0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
src/php/Metadata/MetadataFactory.php
src/php/Metadata/MetadataFactory.php
+3
-9
No files found.
src/php/Metadata/MetadataFactory.php
View file @
7b236557
...
...
@@ -31,7 +31,6 @@ use ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface;
use
ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface
;
use
ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface
;
use
ApiPlatform\Core\Metadata\Resource\ResourceMetadata
as
APIResourceMetadata
;
use
ApiPlatform\Core\PathResolver\OperationPathResolverInterface
;
use
Assert\Assertion
;
use
Doctrine\Common\Inflector\Inflector
;
use
Irstea\NgModelGeneratorBundle\Models\ClassName
;
...
...
@@ -65,9 +64,6 @@ final class MetadataFactory implements MetadataFactoryInterface
/** @var OperationMethodResolverInterface */
private
$operationMethodResolver
;
/** @var OperationPathResolverInterface */
private
$operationPathResolver
;
/** @var ContainerInterface */
private
$filterLocator
;
...
...
@@ -460,11 +456,9 @@ final class MetadataFactory implements MetadataFactoryInterface
$properties
[
$propertyName
]
=
$property
;
if
(
$property
->
isEmbedded
())
{
$type
=
$property
->
getLeafType
();
if
(
$type
)
{
$className
=
$type
->
getClassName
();
if
(
$className
)
{
$queue
[]
=
PHPClass
::
get
(
$className
);
}
$className
=
$type
->
getClassName
();
if
(
$className
)
{
$queue
[]
=
PHPClass
::
get
(
$className
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment