CakePHP 1.2 ã® saveAll ãã®1 CakePHP 1.2 ã® saveAll ãã®2 ã®ã¨ã³ããªã¼ãæ¸ãã¦ããã¨ãã« deleteAll ã¨ããã¡ã½ãããããæ°ã«ãªã£ãã®ã§èª¿ã¹ã¦ã¿ã¾ããã CakePHP 1.1 ã§éçºæã« delete ããã¨ãã« ID ãæå®ããããæ¹æ³ããªããããæ¡ä»¶ã§ã¾ã¨ãã¦åé¤ãããã¨ããªã©ã¯ findAll ãã¦ããã«ã¼ã㧠delete ãã¦ãã¾ããããã®ã¨ããæ¡ä»¶ãæå®ãã¦åé¤ããæ¹æ³ããªããã¨ã½ã¼ã¹ã調ã¹ãã®ã§ããããã¾ããã§ããã 使ãæ¹ã¯é常ã«ç°¡åã§ããfindAll ã®ããã«æ¡ä»¶ãæå®ã㦠deleteAll ãå®è¡ããã ãã§ãã $conditions = array('User.name'=>'suzuki'); if ($this->User->deleteAll($conditions)) { $this->Session
{{#tags}}- {{label}}
{{/tags}}