1
test:
_attributes: { phpName: Test }
name: { type: varchar, size: 100 }
one_id: { type: INTEGER, foreignTable: second, foreignReference: id}
two_id: { type: INTEGER, foreignTable: second, foreignReference: id}
second:
_attributes: { phpName: Second }
name: { type: varchar, size: 100 }
在Doctrine中,我可以通过$test->getSecond1();
和$test->getSecond2();
得到,但在Propel中这不起作用。我如何从一个关系中获得另外两个领域?获取有一个关系的字段