Cakephp 3 saveMany return false on save


#1
                $quote_id = (int) $this->request->getData('quotation-'.$i); 
                $selectQuery = $this->CrmQuotationProducts->find('all',[
                ])->where(['crm_quotation_id IN' => $quote_id ]);
                    $po_data = [];
                    foreach($selectQuery as $index => $query){
                        $quantity= $this->request->getData('quantity-'.$i);
                        
                        $po_data[] =  array(
                            'product_id' => $product_id,
                            'crm_purchase_order_id' => $po_id,
                            'price' => $price,
                            'qty' => $quantity,
                            'crm_quotation_product_id' => $query->id, //from crm_quotation_product - id
                            'crm_quotation_id' => $query->crm_quotation_id, //from crm_quotation_product - crm_quotation_id
                            'admin_id' => $admin_id,
                            'additional' => 2,
                            'created_at' => $created_at
                        );
                        
                        $poProducts = TableRegistry::get('CrmPoProducts');
                        $entities = $poProducts->newEntities($po_data);
                        $result = $poProducts->saveMany($entities);
                       
                        echo json_encode($result);

                        
                    }

#2

Have you looked at the errors in the entities?


#3

its already solved thanks for your help
its in the validation error “incorrect date format”