and if I print $coords using print $myObj->getCoords();. I get 0 0 as result.
I tried to set private $coords = null; but it does not seem to do any difference. Yet I am able to do $myObj->setCoords(null) and it sets it null in database when I save the object.
Why the default point values are
0 0
and notnull
? Shouldn't it benull
by default?When I create a new object from an entity which has
and if I print $coords using
print $myObj->getCoords();
. I get0 0
as result.I tried to set
private $coords = null;
but it does not seem to do any difference. Yet I am able to do$myObj->setCoords(null)
and it sets it null in database when I save the object.