$object = new Objects();
echo $object->id;
Why is this returning nothing? ID is auto increment value, defined as public variable. I can use $object->id after i save() the object, but why not right after i instantiated new object?
$object = new Objects();
echo $object->id;
Why is this returning nothing? ID is auto increment value, defined as public variable. I can use $object->id after i save() the object, but why not right after i instantiated new object?