Skip to content

Instantly share code, notes, and snippets.

View jbtronics's full-sized avatar

Jan Böhmer jbtronics

View GitHub Profile
@jbtronics
jbtronics / SnakeCasePropertyAccessExtractor.php
Created September 19, 2023 21:46
Workaround for problems with snake_case properties with PropertyInfo and API Platform
<?php
/*
* This file is part of Part-DB (https://github.com/Part-DB/Part-DB-symfony).
*
* Copyright (C) 2019 - 2023 Jan Böhmer (https://github.com/jbtronics)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.