[eluser]Unknown[/eluser]
Hi
Very strange problem - but just can't solve it. I have two almost identical classes 'Image' and 'Video' .. (Video was initially a copy of Image). Calling the Video constructor (new Video) the new instance doesn't get created although Image works fine ... is there any reason why a class can't be "Video" ?
=============== relevant code =====================
class Image extends DataMapper {
public $table = 'images';
public $has_one = array('property');
public static $folder = 'images/properties/';
//private static $
public function __construct($id = NULL)
{
parent::__construct($id);
}
===================================================
class Video extends DataMapper {
public $table = 'videos';
public $has_one = array('property');
public static $folder = 'videos/properties/';
//private static $
public function __construct($id = NULL)
{
parent::__construct($id);
}