# Get error when call $this-\>Model-\>find()

**URL:** <https://discourse.cakephp.org/t/get-error-when-call-this-model-find/4856>\
**Category:** Uncategorized\
**Created:** [September 4, 2018, 9:53am UTC](https://discourse.cakephp.org/t/get-error-when-call-this-model-find/4856 "2018-09-04T09:53:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![letham1905](https://avatars.discourse-cdn.com/v4/letter/l/9de053/32.png) [@letham1905](https://discourse.cakephp.org/u/letham1905)\
**Post date:** [September 4, 2018, 9:53am UTC](https://discourse.cakephp.org/t/get-error-when-call-this-model-find/4856/1 "2018-09-04T09:53:20Z")

</div>

hi all, I use cakephp 2.4, php 5.6, sqlserver2012, window 10, 64bit. when i call [~~$~~ **this**](https://twitter.com/search?q=%24this&src=ctag)-\>(model name)-\>find(‘all’), i have exception: "Call to a member function find() on null ". Table name and model name is exactly. Can you help me! Thanks all!

---

<div class="post-metadata">

**Author:** ![Ruslan](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Ruslan](https://discourse.cakephp.org/u/Ruslan)\
**Post date:** [September 4, 2018, 1:27pm UTC](https://discourse.cakephp.org/t/get-error-when-call-this-model-find/4856/2 "2018-09-04T13:27:00Z")

</div>

Show full code. May be it’s miss typeing in Model name.  
You can see all tables (with Cake eyes :)) in console cake bake after chose -\> Create model -\> defaul dataSource - but don’t save Model it’s rewrites your existing model.
