Closed sujit-baniya closed 4 years ago
I want to hide some columns for some entities.
class UserRepository extends Repository implements ActorProviderInterface { public function getActor(TokenInterface $token): ?object { if (!isset($token->getPayload()['userID'])) { return null; } return $this->findByPK($token->getPayload()['userID']); } }
How would I hide the columns or add extra columns
If you want to select partial models you have 2 options: 1) use Embeddings 2) use buildQuery of select and then call columns method, you will switch from ORM to DBAL
I want to hide some columns for some entities.
How would I hide the columns or add extra columns