RSS Feed/News Saving data directly to db (not submitting it)

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,573
Points
823

Reputation:

I am trying to save data directly to db calling from the middle of another function (not by submitting process).
I can dump the data but it's not being saved. What's wrong? Is the filter related to new field or the incoming data?

Code:

Code:
public function createItem($data)
    {
        $item = $this->em()->create('My\Addon:Class');

$input = $this->filter([
            'id'       => 'uint',
            'name'     => 'str',
            'qty'      => 'uint',
        ])...

Read more

Continue reading...
 
Status
Not open for further replies.
Top