public function findOneByAttributes(array $attributes = array(), $columns = array('*'))
    {
        if (empty($attributes)) {
            throw new Exception('Unable to find entity');
        }
        return $this->model->where($attributes)->first($columns);
    }