<td><?= PersoonHasStdtaak::model()->findByPk(array('idPlanning' => $modelPlanning->idPlanning, 'idStdTaak' => $modelStdtaak->idStdTaak))->idPersoon0->Naam ?></td>
I've got this. Somehow when I let it just print it without the idPersoon0->Naam
it prints regulary a composite primary key in this form #-#-#
for example 1-2-3
where 1
represents the Person
2
represents the Planning
and 3
represents the Taak
.
Why does it give me the "Trying to get property from non-object.
"?