<?php

class MapLayer extends DataObject {

	static $db = array(
		'Title' => 'Varchar(255)'
	);


	static $has_one = array(
		'KmlFile' => 'File'
	);

	function getCMSFields_forPopup() {
		$fields = new FieldSet();

		$fields->push(new TextField('Title'));
		$fields->push(new FileIFrameField('KmlFile'));

		return $fields;
	}

}

<?php

class MapLayer extends DataObject {

	static $db = array(
		'Title' => 'Varchar(255)'
	);


	static $has_one = array(
		'KmlFile' => 'File'
	);

}

Remove obsolete method that was for DataObjectManager
FIX: Remove obsolete method that was for DataObjectManager
