RSS Feed/News how do I save varbinary data to database;

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

Reputation:

can we insert varbinary data as a normal string or is there an extra step? the field id column is varbinary.

Code:

Code:
$threadFieldValues = \XF::app()->em()->create('XF:ForumField');
                $threadFieldValues->node_id = 2;
                $threadFieldValues->field_id = "fieldidtests";
                // var_dump($threadFieldValues);
                $threadFieldValues->save();

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