Closed mabar closed 3 years ago
It's required to store getRepository() result in variable or otherwise plugin does not provide informations related to given repository entities (e.g. UserRepository + User entity)
getRepository()
With variable assignment, $user is User
$user
User
$userRepository = $this->model->getRepository(UserRepository::class); $user = $userRepository->getByIdChecked(1); assert($user instanceof User);
Without variable assignment, $user is IEntity
IEntity
$user = $this->model->getRepository(UserRepository::class)->getByIdChecked(1); assert($user instanceof IEntity);
Related to #18
Released as 0.8.1: https://github.com/nextras/orm-intellij/releases/tag/v0.8.1
It's required to store
getRepository()
result in variable or otherwise plugin does not provide informations related to given repository entities (e.g. UserRepository + User entity)With variable assignment,
$user
isUser
Without variable assignment,
$user
isIEntity
Related to #18