fuel/core — Issue #767: Model_Crud offsetGet() throws OutOfBoundsException if object property exists and is null
Author: darklow
Created: 2012-01-09 10:05:28+00:00
State: open

If database field is NULL, it is still present in Model_Crud class object, however this method throws OutOfBoundsException.

```php
public function offsetGet($offset)
{
if (isset($this->$offset))
{
return $this->{$offset};
}

throw new \OutOfBoundsException('Property "'.$offset.'" not found for '.get_called_class().'.');
}
```
instead of ```isset``` it should be changed to

```php
if (property_exists($this, $offset))
```
otherwise class cannot return existing object with null value.