RedBeanPHP

easy ORM for PHP

Deleting a Bean

To remove a bean from the database:


    R
::trash$book );

To delete more beans of type book:


    R
::trashAll$books );

To delete all beans of type book:


    R
::wipe'book' );

For a complete overview of all methods in R, see the facade API.



User contributed notes. Please use the comment section to provide tips, notes and examples. To ask for support or to provide feedback use the forum. For bug reports use Github Issue Tracker.

Site comments powered by Disqus

page generated in 0.010646104812622 sec.