title: TypeORM- findOne returns unexpected value
body: <p>I have a User Entity with an Email Column. When I use TypeORM's findOne function to search for a Email which doesn't exist in the database, findOne returns the first entry to the User Entity for some reason. This function seems not to work like in the documentation.</p>
  
  <p><strong>findOne:</strong></p>
  
  <pre><code>// returns the first User of database
  const user = await this.userRepository.findOne({ email: 'this@mailisnotindatabase.de' });
  </code></pre>
  
  <p><strong>User.Entity.ts:</strong></p>
  
  <pre><code>import {
    Entity,
    Column,
    PrimaryGeneratedColumn,
  } from 'typeorm';
  
  @Entity()
  export class User {
    @PrimaryGeneratedColumn({ name: 'id' })
    private _id: number;
  
    @Column({ name: 'password', length: 256, nullable: true })
    private _password?: string;
  
    @Column({ name: 'email', length: 300, nullable: true, unique: true })
    private _email?: string;
  
    @Column({ name: 'roles', length: 300, nullable: true })
    private _roles?: string = null;
  
    public get id(): number {
      return this._id;
    }
  
    public set id(id: number) {
      this._id = id;
    }
  
    public get email(): string {
      return this._email;
    }
  
    public set email(email: string) {
      this._email = email;
    }
  
    public get password(): string {
      return this._password;
    }
  
    public set password(password: string) {
      this._password = password;
    }
  
    public get roles(): string {
      return this._roles;
    }
  
    public set roles(roles: string) {
      this._roles = roles;
    }
  }
  </code></pre>
  
  <p>This is from the official documentation:</p>
  
  <blockquote>
    <p>const user = new User(); user.firstName = "Timber"; user.lastName =
    "Saw"; user.age = 25; await repository.save(user);</p>
    
    <p>const allUsers = await repository.find(); const firstUser = await
    repository.findOne(1); // find by id const timber = await
    repository.findOne({ firstName: "Timber", lastName: "Saw" });</p>
    
    <p>await repository.remove(timber);</p>
  </blockquote>