private function createInitAlbum($model = null, $model_id = null)
    {
        $this->save(
            array(
                'Album' => array(
                    'model' => $model,
                    'model_id' => $model_id,
                    'status' => 'draft',
                    'tags' => '',
                    'title' => $this->generateAlbumName($model, $model_id)
                )
            )
        );
        return $this->read(null);
    }
private function createInitAlbum($model = null, $model_id = null)
    {
        $this->save(
            array(
                'Album' => array(
                    'model' => $model,
                    'model_id' => $model_id,
                    'status' => 'draft',
                    'tags' => '',
                    'title' => $this->generateAlbumName($model, $model_id)
                )
            )
        );
        return $this->read(null);
    }
private function createInitAlbum ( $ model = null , $ model_id = null ) { $ this -> save ( array ( 'Album' => array ( 'model' => $ model , 'model_id' => $ model_id , 'status' => 'draft' , 'tags' => '' , 'title' => $ this -> generateAlbumName ( $ model , $ model_id ) ) ) ) ; return $ this -> read ( null ) ; }
Save album with a random name in database
@param null $model
@param null $model_id
@return mixed
Save album with a random name in database