**Issue type:** [ ] question [x] bug report [ ] feature request [ ] documentation issue **Database system/driver:** [ ] `cordova` [ ] `mongodb` [ ] `mssql` [ ] `mysql` / `mariadb` [ ] `oracle` [x ] `postgres` [ ] `sqlite` [ ] `sqljs` [ ] `react-native` [ ] `expo` **TypeORM version:** [x] `latest` [ ] `@next` [ ] `0.x.x` (or put your version here) **Steps to reproduce or a small repository showing the problem:** ``` user.id = undefined; User.findOne(user.id); // expect to see undefined / null but returns the first item in the table ```