R::store does not work inside a model method [REDBEAN]

415 Views Asked by At

I am trying to integrate REDBEAN into my web application.

I would like my model method to complete the "storing process" as well.

When I add

R::store($this) 

in the last model-method it fails. How can I accomplish the same ?

1

There are 1 best solutions below

1
On BEST ANSWER

I posted the same question on the redbean google forum and got the answer.

https://groups.google.com/group/redbeanorm/browse_thread/thread/bcac973baabdd7bb