gabordemooij / redbean

ORM layer that creates models, config and database on the fly
https://www.redbeanphp.com
2.31k stars 280 forks source link

Documentation: Cooker #255

Closed linqcan closed 11 years ago

linqcan commented 11 years ago

http://redbeanphp.com/cooker

" In this example we convert the array 'musician' to a bean of type 'musician'. The bean can now be stored in the database. "

However, the type specified in the array is "bandmember".

" R::store($musician); "

The bean variable is called "musicianBean" in the code snippet, assuming this should be changed to "R::store($musicianBean)"?

gabordemooij commented 11 years ago

updated thnx for reporting!

linqcan commented 11 years ago

Looks good!