Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error entity embeddables #1031

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix error entity embeddables #1031

wants to merge 1 commit into from

Conversation

mpipich
Copy link

@mpipich mpipich commented Mar 27, 2019

Hello!
APY\DataGridBundle\Grid\Source\Entity::getFieldName() does not take into account the use of Embeddables

Copy link
Collaborator

@npotier npotier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR. I think there is a typo in your code

@@ -202,6 +203,13 @@ protected function getFieldName($column, $withAlias = false)
return $column->getField();
}

$reflectionFields = $this->ormMetadata->getReflectionProperties();
$reflectionProperty = (isset($reflFields[$name])) ? $reflectionFields[$name] : null;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello what is this variable $reflFields ? should it be $reflectionFields ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants