我试图生成我的灯具,但出现此错误:
Catchable Fatal Error: Object of class FinanceBundleEntityConversion could not be converted to string
这是我的相关实体:
转换链接实体
...
/**
*
* @var Conversion
*
* @ORMColumn(name="""conversionID""", type="bigint")
* @ORMManyToOne(targetEntity="FinanceBundleEntityConversion")
* @ORMJoinColumn(name="""conversionID""", referencedColumnName="""ID""")
*/
private $conversion;
... //getter setters and so on
转换实体不包含有关此关系的任何内容。只有其他独立字段。
这是我的转换路径夹具
FinanceBundleEntityConversionLink:
conversionLink{1..5}:
# some fields ...
conversion: '@conversion*'
谢谢。
您的灯具文件应如下所示:
FinanceBundleEntityConversionLink:
conversionLink{1..5}:
# some fields ...
conversion: '@conversion<current()>'
试试这个:
FinanceBundleEntityConversionLink:
conversionLink{1..5}:
# some fields ...
conversion: '@conversion$current'