<?php
/**
 * @package api
 * @subpackage objects
 */
class KalturaAssetParamsResourceContainer extends KalturaResource 
{
	/**
	 * The content resource to associate with asset params
	 * @var KalturaContentResource
	 */
	public $resource;
	
	/**
	 * The asset params to associate with the reaource
	 * @var int
	 */
	public $assetParamsId;

	public function validateEntry(entry $dbEntry)
	{
		parent::validateEntry($dbEntry);
    	$this->validatePropertyNotNull('resource');
    	$this->validatePropertyNotNull('assetParamsId');
	}
	
	public function toObject ( $object_to_fill = null , $props_to_skip = array() )
	{
		if(!$object_to_fill)
			$object_to_fill = new kAssetParamsResourceContainer();
			
		$object_to_fill->setResource($this->resource->toObject());
		$object_to_fill->setAssetParamsId($this->assetParamsId);
		return $object_to_fill;
	}
}
<?php
/**
 * @package api
 * @subpackage objects
 */
class KalturaAssetParamsResourceContainer extends KalturaResource 
{
	/**
	 * The content resource to associate with asset params
	 * @var KalturaContentResource
	 */
	public $resource;
	
	/**
	 * The asset params to associate with the reaource
	 * @var int
	 */
	public $assetParamsId;

	public function validateEntry(entry $dbEntry)
	{
		parent::validateEntry($dbEntry);
    	$this->validatePropertyNotNull('resource');
    	$this->validatePropertyNotNull('assetParamsId');
	}
	
	public function toObject ( $object_to_fill = null , $props_to_skip = array() )
	{
		if(!$object_to_fill)
			$object_to_fill = new kAssetParamsResourceContainer();
			
		if($this->resource)
			$object_to_fill->setResource($this->resource->toObject());
			
		$object_to_fill->setAssetParamsId($this->assetParamsId);
		return $object_to_fill;
	}
}
Make sure resource is not null
Make sure resource is not null

git-svn-id: 8a2ccb88241e16c78017770bc38d91d6d5396a5a@60246 6b8eccd3-e8c5-4e7d-8186-e12b5326b719
