How to insert Content Instance into Relator?

Hi,

I need insert Content Instance into Relator, case relator is empty, I create Content and insert into Relator, but i don't know it.

Anybody kindly solve my problem.

Thanks

RE: How to insert Content Instance into Relator?

Hello:

     I don't know whether you still interested in the answer or not, but in my opinion I guess that you should put restricting conditions on the user not to leave the relator empty (Minimum value of one) instead of creating the instance through the code.

Unless your business need forces you to do so.

 

 

If I've been able to see further, it was only because of Allah, then standing on the shoulders of giants.