Hi,
you can overload the save method of Model1 in a way
that it checks type and if it is machine, create two record in Model2.
--
eng. Ilian Iliev
Web Software Developer
Mobile: +359 88 66 08 400
Website: ilian.i-n-i.org
On Thu, Dec 9, 2010 at 11:21 PM, Nick wrote:
> I am working on a projec
Thanks for the reply. I'm working on the override. How to I affect a
model from the save of another model.
On Dec 9, 3:37 pm, Ilian Iliev wrote:
> Hi,
>
> you can overload the save method of Model1 in a way
> that it checks type and if it is machine, create two record in Model2.
>
> --
> eng. Ili
Nevermind. I think I got it.
On Dec 9, 3:57 pm, Nick wrote:
> Thanks for the reply. I'm working on the override. How to I affect a
> model from the save of another model.
>
> On Dec 9, 3:37 pm, Ilian Iliev wrote:
>
> > Hi,
>
> > you can overload the save method of Model1 in a way
> > that it che
3 matches
Mail list logo