Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace PHPSTORM_META {
- use App\Manufacturer\Entity\Manufacturer;
- use App\Part\Entity\Part;
- use App\Shared\Doctrine\Registry;
- override(Registry::get(), map(0, [
- '' => '@',
- ]));
- /** @var Registry $registry */
- $registry = null;
- $part = $registry->get(Part::class, null);
- $registry->get(Manufacturer::class, $part->manufacturerId)-> // autocomplete ok
- if ($part instanceof Part) {
- $registry->get(Manufacturer::class, $part->manufacturerId)-> // autocomplete empty
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement