{"url":"https://k-holy.hatenablog.com/entry/2012/03/08/085504","categories":["PHP"],"image_url":null,"height":"190","published":"2012-03-08 08:55:04","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk-holy.hatenablog.com%2Fentry%2F2012%2F03%2F08%2F085504\" title=\"RedBean\u3067\u898b\u308bMass Assignment - k-holy\u306ePHP\u3068\u304b\u8af8\u3005\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","author_url":"https://blog.hatena.ne.jp/k-holy/","provider_url":"https://hatena.blog","version":"1.0","provider_name":"Hatena Blog","type":"rich","author_name":"k-holy","blog_title":"k-holy\u306ePHP\u3068\u304b\u8af8\u3005\u30e1\u30e2","blog_url":"https://k-holy.hatenablog.com/","title":"RedBean\u3067\u898b\u308bMass Assignment","description":"Rails\u306e\u4ed5\u69d8\uff08\u3068\u8a00\u3063\u3066\u3044\u3044\u306e\u304b\u306a\uff1f\uff09\u306b\u8d77\u56e0\u3059\u308b\u3001GitHub\u306eMass Assignment\u8106\u5f31\u6027\u304c\u72d9\u3044\u6483\u3061\u3055\u308c\u305f\u306e\u304c\u8a71\u984c\u306b\u306a\u308a\u307e\u3057\u305f\u304c\u3001ORM\u30e9\u30a4\u30d6\u30e9\u30eaRedBean\u306e\u3001RedBean_OODBBean::import()\u304c\u305d\u306e\u307e\u3093\u307e\u3001\u305d\u3046\u3044\u3046\u5b9f\u88c5\u3060\u3063\u305f\u306e\u3092\u601d\u3044\u51fa\u3057\u305f\u306e\u3067\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u305f\u3002 You can import an array into a bean using: $book->import($_POST); The code above is handy if your $_POST request array only contains book data. It will\u2026"}