6 months ago

New entry in model method

Posted 6 months ago by cservices

This may sound like a dumb question but...

Say I am in a model (Foo) for a table named foo;

if I create a method that is going to create a new entry for "foo" do still write $foo = new Foo(); Or is there something else I can write that does the same thing, but without the need for the above?

Asking for a friend - LOL

Please sign in or create an account to participate in this conversation.