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中這不起作用。我如何從一個關係中獲得另外兩個領域?獲取有一個關係的字段