[RSS Feed/News] Best practice for basicEntitySave with unique_fields

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Code:

Code:
    protected function saveProcess(\Lala\Entity\Country $country)
    {
        $form = $this->formAction();
        $input = $this->filter([
            'country_id' => 'uint',
            'country_name' => 'str',
            'country_saison' => 'str',
            'display_order' => 'uint',
        ]);
        $form->basicEntitySave($country, $input);
        return $form;
    }

Without any unique fields this code is the usual one and perfect.

But now i have changed...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom