One to many relationship for embedded Form (Doctrine if it matters) in admin panel

7 views
Skip to first unread message

Md Mostafizur Rahman milon

unread,
Aug 28, 2010, 2:39:22 AM8/28/10
to diem-users
hello Diem User

plz follow my schema :-

TestQuestion:
actAs: [ Timestampable,DmSortable ]
columns:
name: { type: string(200), notnull: true}
is_active: { type: boolean, notnull: true, default: false }


AnswerOption:
actAs: [ Timestampable,DmSortable ]
columns:
test_id: { type: integer, notnull: true}
options: { type: string(255), notnull: true }
relations:
TestQuestion:
class: TestQuestion
onDelete: CASCADE
local: test_id
foreign: id
foreignAlias: AnswerOptions



now i am try to embed AnswerOption form in TestQuestion from ,but i
cant do it show error .any one can describe how its is possible .


thanks

Maciek

unread,
Aug 30, 2010, 5:57:20 AM8/30/10
to diem-users
I think you will have to overwrite render function, in dmForm class
file
Reply all
Reply to author
Forward
0 new messages