src/Repositories/People_emailRepository.php
public function createNewRecord($data) {
        $people_email = new $this->model;

        $people_email['people_id']     = $data['people_id'];
        $people_email['email_id']      = $data['email_id'];

        if ($people_email->save()) {

            // Return the new ID
            return $people_email->id;
        }

        return false;
    }
public function createNewRecord($data) {
        $people_email = new $this->model;

        $people_email['people_id']     = $data['people_id'];
        $people_email['email_id']      = $data['email_id'];

        if ($people_email->save()) {

            // Return the new ID
            return $people_email->id;
        }

        return false;
    }
public function createNewRecord ( $ data ) { $ people_email = new $ this -> model ; $ people_email [ 'people_id' ] = $ data [ 'people_id' ] ; $ people_email [ 'email_id' ] = $ data [ 'email_id' ] ; if ( $ people_email -> save ( ) ) { // Return the new ID return $ people_email -> id ; } return false ; }
INSERT INTO 'people_email'

@param   array   $data      The data to be saved, which is already validated, washed, & prepped.
@return  mixed              The new list_email.id when save is successful, false when save fails
INSERT INTO people_email