8000 [Users] Type-cast parent id to int by BlackbitDevs · Pull Request #5835 · pimcore/pimcore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Users] Type-cast parent id to int #5835

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

Merged
merged 1 commit into from
Feb 17, 2020

Conversation

BlackbitDevs
Copy link
Contributor

I just stumbled about this when trying to get all users below a certain role folder via

$roleListing = new Listing();
$roleFolder = Role\Folder::getByName('abc');
$roles = array_filter($roleListing->load(), static function(AbstractUser $role) use ($roleFolder) {
    return $role->getParentId() === $roleFolder->getId();
});

@brusch brusch merged commit 049d1be into pimcore:master Feb 17, 2020
@brusch
Copy link
Member
brusch commented Feb 17, 2020

Thanks! 🙏

@brusch brusch added this to the 6.5.1 ("Coffee Stout") milestone Feb 17, 2020
@brusch brusch self-assigned this Feb 17, 2020
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
0