我在symfony 3.4项目上有一个错误。我正在尝试管理应用程序菜单中通知的显示。所以我创建了一个扩展控制器的CustomController。 然后,我让我的所有其他控制器继承自CustomController。 但是,当我调用getDoctrine()来访问存储库时,我得到了以下错误: “对成员函数的调用在null上有()” 这是我的CustomController: <?php
class C
我有错误 The "AppBundle\Repository\CalendarEventsRepository" entity repository implements "Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepositoryInterface", but its service could not be found.Make sure the service exists and is tagged with "
org.springframework.stereotype.Service;
public class StoreService {
private StoreRepository repository;import org.springframework.data.jpa.repository.JpaRepository;
public interfaceStoreRepository extends JpaRepository<St
我所有的JpaRepositories都是用org.springframework.stereotype.Repository注释的,所以我尝试了如下所示:@Aspectpublic class RepositoryMetrics {
@Around("@annotation(org.springframework.stereotype.Repository