public function hasEverEdited()
    {
        if ($this->getCreatedAt() === null || $this->getUpdatedAt() === null) {
            return false;
        }
        return $this->getCreatedAt() !== $this->getUpdatedAt();
    }
public function hasEverEdited()
    {
        if ($this->getCreatedAt() === null || $this->getUpdatedAt() === null) {
            return false;
        }
        return $this->getCreatedAt() !== $this->getUpdatedAt();
    }
public function hasEverEdited ( ) { if ( $ this -> getCreatedAt ( ) === null || $ this -> getUpdatedAt ( ) === null ) { return false ; } return $ this -> getCreatedAt ( ) !== $ this -> getUpdatedAt ( ) ; }
Check it has been ever edited.
The judgement principle is to compare the creation time and the last update time,
if one of the two does not exist, then that has not been modified,
if both exist but not consistent, that modified.
You can override this method to implement more complex function.
@return boolean Whether this entity has ever been edited.
Check it has been ever edited . The judgement principle is to compare the creation time and the last update time if one of the two does not exist then that has not been modified if both exist but not consistent that modified . You can override this method to implement more complex function .