RSS Feed/News Having trouble passing a variable through

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,656
Points
823

Reputation:

I'm working on my controller file and for testing purposes I just want to pass a variable through to my Entity so that it can be saved into the db 'filesize' column.

Code:

Code:
public function actionAdd()
    {
        $store = $this->em()->create('Path\To:Manage');
        $store->filesize = 12345;
        return $this->storeAddEdit($store);
    }

public function actionEdit(ParameterBag $params)
    {
        $store = $this->assertStoreExists($params->store_id);
        $store->filesize =...

Read more

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