Services/SiteManagementModel.php
public function getSiteByDomain($domain){
		$timeStamp = time();
		if (!is_string($domain)) {
			return $this->createException('InvalidParameterValueException', 'Invalid parameter value. Parameter must be string.', 'E:S:004');
		}
		$result = $this->em->getRepository($this->entity['s']['name'])->findOneBy(array('domain' => $domain));
		if(is_null($result)){
			$response = $this->getSiteOfDomainAlias($domain);
			if(!$response->error->exist){
				$result = $response->result->set;
			}
		}
		if(is_null($result)){
			return new ModelResponse($result, 1, 0, null, true, 'E:D:002', 'Unable to find request entry in database.', $timeStamp, time());
		}
		return new ModelResponse($result, 1, 0, null, false, 'S:D:002', 'Entries successfully fetched from database.', $timeStamp, time());
	}
public function getSiteByDomain($domain){
		$timeStamp = time();
		if (!is_string($domain)) {
			return $this->createException('InvalidParameterValueException', 'Invalid parameter value. Parameter must be string.', 'E:S:004');
		}
		$result = $this->em->getRepository($this->entity['s']['name'])->findOneBy(array('domain' => $domain));
		if(is_null($result)){
			$response = $this->getSiteOfDomainAlias($domain);
			if(!$response->error->exist){
				$result = $response->result->set;
			}
		}
		if(is_null($result)){
			return new ModelResponse($result, 1, 0, null, true, 'E:D:002', 'Unable to find request entry in database.', $timeStamp, time());
		}
		return new ModelResponse($result, 1, 0, null, false, 'S:D:002', 'Entries successfully fetched from database.', $timeStamp, time());
	}
@name 			getSiteByDomain()

@since			1.0.7
@version         1.1.2
@author          Can Berkol

@use				$this->createException()

@param           string			$domain

@return          \BiberLtd\Bundle\CoreBundle\Responses\ModelResponse