I have a old database in PostgreSQL with multiple primary key.
When I try save any information in these tables, an error occurred because CakePHP trying to get the lastInsertId. Because, as we know, CakePHP doesn't support multiple primary key.
So, I wanna know, how can I disable this functionality/option?
I tried this, but doesn't work as expected.
$this->OrderDrinkBase->saveAll(
$drinkBases,
array('callbacks' => false, 'validate' => false)
);
The solution above, works, so I approved the answer. But, I really want a explanation of how can I disable the function lastInsertId in CakePHP in some cases.