Answers for "saveAll get all id save cakephp"

PHP
0

none

public $saved_ids = array(
		'insert' => array(
			'count' => 0, 'id' => array()
		),
		'update' => array(
			'count' => 0, 'id' => array()
		)
    );


function afterSave( $created, $options = array() ){
		if( $created ){
			$this->saved_ids['insert']['count']++;
			$this->saved_ids['insert']['id']
Posted by: Guest on January-01-1970

Browse Popular Code Answers by Language