Php Cakephp Getlastinsertid Returns Zero Stack Overflow

Php Cakephp Getlastinsertid Returns Zero Stack Overflow