Doctrine can';在我的symfony 4项目和postgres数据库中,不要使用Acos条令扩展

Doctrine can';在我的symfony 4项目和postgres数据库中,不要使用Acos条令扩展,doctrine,api-platform.com,Doctrine,Api Platform.com,我试图在我的symfony4项目中使用数字函数 我已连接到postgres数据库: DATABASE_URL=pgsql://postgres:postgres@postgres/mydatabase?serverVersion=11 在我的doctor.yaml文件中,我添加了: doctrine: orm: ... dql: numeric_functions: acos: DoctrineExten

我试图在我的symfony4项目中使用数字函数

我已连接到postgres数据库:

DATABASE_URL=pgsql://postgres:postgres@postgres/mydatabase?serverVersion=11
在我的doctor.yaml文件中,我添加了:

doctrine:
    orm:
    ...
       dql:
             numeric_functions:
                 acos: DoctrineExtensions\Query\Mysql\Acos
                 cos: DoctrineExtensions\Query\Mysql\Cos
                 sin: DoctrineExtensions\Query\Mysql\Sin
我想和邮递员再问一次 我收到了以下错误消息: “试图从命名空间\“DoctrineExtensions\Query\Mysql\”加载类\“Acos\”\n是否忘记了另一个命名空间的\“use\”语句?”