protected function getIsExpired(Document $document) 
	{
		$date = null === $document->getDateEdit() ? $document->getDateInsert() : $document->getDateEdit();
		$now = new \Datetime("now");
		$interval = $date->diff($now);
		
		if ($interval->y > 0) {
			return true;
		}
		
		return $interval->m >= 6;
	}
protected function getIsExpired(Document $document) 
	{
		$date = null === $document->getDateEdit() ? $document->getDateInsert() : $document->getDateEdit();
		$now = new \Datetime("now");
		$interval = $date->diff($now);
		
		if ($interval->y > 0) {
			return true;
		}
		
		return $interval->m >= 6;
	}
protected function getIsExpired ( Document $ document ) { $ date = null === $ document -> getDateEdit ( ) ? $ document -> getDateInsert ( ) : $ document -> getDateEdit ( ) ; $ now = new \ Datetime ( "now" ) ; $ interval = $ date -> diff ( $ now ) ; if ( $ interval -> y > 0 ) { return true ; } return $ interval -> m >= 6 ; }
If the classified is >= 6 months old is expired

@param Document $document
@return boolean
If the classified is > = 6 months old is expired