Skip to content

Commit

Permalink
Deprecate getParentFieldDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Jul 27, 2020
1 parent 36bc251 commit 28241dc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Model/ModelManager.php
Expand Up @@ -312,8 +312,18 @@ public function getEntityManager($class)
return $this->cache[$class];
}

/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/doctrine-orm-admin-bundle 3.x and will be removed in version 4.0
*/
public function getParentFieldDescription($parentAssociationMapping, $class)
{
@trigger_error(sprintf(
'Method %s() is deprecated since sonata-project/doctrine-orm-admin-bundle 3.x and will be removed in 4.0',
__METHOD__
), E_USER_DEPRECATED);

$fieldName = $parentAssociationMapping['fieldName'];

$metadata = $this->getMetadata($class);
Expand Down

0 comments on commit 28241dc

Please sign in to comment.