Welcome Guest, Not a member yet? Register   Sign In
Problem with object property
#11

[eluser]medvind[/eluser]
[quote author="wiredesignz" date="1249405846"]Try deleting the Page->id variable entirely but leaving the Website->id to be used by both objects.[/quote]

That did the trick! Thank you.

Could you please explain what happens when property names conflict like that? I'm quite new to OOP so I'm pretty clueless.

EDIT: I think I get it: the child's $id simply overrides the parent's $id.




Theme © iAndrew 2016 - Forum software by © MyBB