public function load(\Asgard\Entity\Definition $definition) {
		$this->entityClass = $definition->getClass();

		if(!$definition->has('order_by'))
			$definition->set('order_by', 'id DESC');

		$definition->hook('get', [$this, 'hookGet']);
		$definition->hook('getTranslations', [$this, 'hookgetTranslations']);
		$definition->hook('validation', [$this, 'hookValidation']);
	}
public function load(\Asgard\Entity\Definition $definition) {
		$this->entityClass = $definition->getClass();

		if(!$definition->has('order_by'))
			$definition->set('order_by', 'id DESC');

		$definition->hook('get', [$this, 'hookGet']);
		$definition->hook('getTranslations', [$this, 'hookgetTranslations']);
		$definition->hook('validation', [$this, 'hookValidation']);
	}
public function load ( \ Asgard \ Entity \ Definition $ definition ) { $ this -> entityClass = $ definition -> getClass ( ) ; if ( ! $ definition -> has ( 'order_by' ) ) $ definition -> set ( 'order_by' , 'id DESC' ) ; $ definition -> hook ( 'get' , [ $ this , 'hookGet' ] ) ; $ definition -> hook ( 'getTranslations' , [ $ this , 'hookgetTranslations' ] ) ; $ definition -> hook ( 'validation' , [ $ this , 'hookValidation' ] ) ; }
Behavior loading.
@param  \Asgard\Entity\Definition $definition
Behavior loading .