public function find($fileId, $type = null)
	{
		if (! is_string($fileId)) {
			return null;
		}

		if (empty($type)) {
			$type = FileAbstraction::CN();
		}
		
		return $this->getDoctrineEntityManager()
				->find($type, $fileId);
	}
public function find($fileId, $type = null)
	{
		if (! is_string($fileId)) {
			return null;
		}

		if (empty($type)) {
			$type = FileAbstraction::CN();
		}
		
		return $this->getDoctrineEntityManager()
				->find($type, $fileId);
	}
public function find ( $ fileId , $ type = null ) { if ( ! is_string ( $ fileId ) ) { return null ; } if ( empty ( $ type ) ) { $ type = FileAbstraction :: CN ( ) ; } return $ this -> getDoctrineEntityManager ( ) -> find ( $ type , $ fileId ) ; }
Searches for any File Storage entity by entity ID.
Result can be File, Image or Folder.

@param string $fileId
@param string $type
@return null | FileAbstraction
Searches for any File Storage entity by entity ID . Result can be File Image or Folder .