You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe we should implement persist, remove and flush in repositories. So we don't have to inject the EntityManager only for a flush if we already injected a repository:
Current:
public function __construct(
DocumentManagerInterface $odm, # Only for persist and flush
ProductRepository $productRepository,
) {
$this->odm = $odm;
$this->productRepository = $productRepository;
}
Target:
public function __construct(
ProductRepository $productRepository,
) {
$this->productRepository = $productRepository;
}
The text was updated successfully, but these errors were encountered:
Maybe we should implement
persist
,remove
andflush
in repositories. So we don't have to inject the EntityManager only for a flush if we already injected a repository:Current:
Target:
The text was updated successfully, but these errors were encountered: