symfony-2.7

    1热度

    1回答

    我们使用symfony 2并且还使用了symfony pdf助手。当我创建发票时,它在图像路径上显示问题。请让我知道是否需要添加任何细节。 <table style="width:100%;"> <tr style="text-align:center;"> <td style="text-align:center; font:bold 22px 'Cambria'; lin

    0热度

    1回答

    我有以下composer.json在Symfony2的项目年的工作现在 { "name": "sima/api", "license": "Private", "type": "project", "description": "SIMA API", "autoload": { "psr-4": { "": "src/",

    0热度

    1回答

    我有一个自动填充的表单(使用另一个表中的所有行)的选择字段(choiceType)。 我想设置标签(仅标签,选择的不是内容)... 我没做到这一点的textType不断变化: $builder->add('note') 到 $builder->add('note', 'text', array('label' => 'myNewLabel') ,但我不能这样做与choiceType,因为如

    0热度

    1回答

    如何将此查询转换为symfony 2准则查询生成器? SELECT artist_id,日期,余额,类型FROM交易为T1 WHERE 日期=(SELECT MAX(日期)FROM交易WHERE artist_id = t1.artist_id与在 状态( '部分', '未决', '扣除', '接受'),然后键入NOT LIKE '支付')GROUP BY artist_id ORDER BY a

    0热度

    2回答

    我想在我的Symfony 2.7项目中包含一些自定义CSS,但是我无法得到这个工作。 我的CSS位于app/Resources/public/css/timeline.css 在我的代码<link rel="stylesheet" href="{{ asset('app/Resources/public/css/timeline.css') }}"> 包括这一点,并执行该命令app/console

    1热度

    1回答

    我刚刚从FOS User Bundle 2.0 alpha1移到了稳定版2.0,并且我得到了这个。 利用这种配置: fos_user: db_driver: orm firewall_name: main user_class: BizTV\UserBundle\Entity\User from_email: address: "%mailer_

    -1热度

    2回答

    从昨天起,我无法理解为什么我在Symfony网站上有这个错误。 我有一项服务取决于他人。当我尝试使用并注入Symfony教义实体管理器时,我有错误。我无法找到一个方法来做到这一点:( 我的配置: mycompany_jobs_bundle.processor.crm.product_matrix: class: %mycompany_jobs_bundle.processor.crm.p

    1热度

    1回答

    根据Symfony安全章节,我在数据库中加载了我的用户和角色。用户实现AdvancedUserInterface,\ Serializable, 角色实现RoleInterface。 我的角色实体: AppBundle\Entity\Roles: type: entity table: Roles repositoryClass: AppBundle\Reposi

    1热度

    1回答

    我有我的数据库角色: AppBundle\Entity\Roles: type: entity table: Roles repositoryClass: AppBundle\Repository\Roles 用于测试目的的空类: namespace AppBundle\Repository; use Doctrine\ORM\EntityRepository; use AppB

    3热度

    2回答

    我使用symfony 2.7作为CMF。 我有2个实体用户和任务。任务有一个生命周期属性(createdBy,updatedBy)。 当我尝试删除用户,我有此错误: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint