Top "Model" questions

Part of the MVC pattern, the Model manages the behaviour and data of the application.

Laravel Excel , exporting from a model, styling issues

I am trying to export some data from my model to excel scheet with "Laravel excel", I have done it, …

php excel laravel model laravel-excel
What is the difference between model.fit() an model.evaluate() in Keras?

I am using Keras with TensorFlow backend to train CNN models. What is the between model.fit() and model.evaluate()? …

tensorflow model keras evaluate
How to use multiple databases dynamically for one model in CakePHP

Ok, my first question was modified so many times that I chose to delete it and reformulate my question. I've …

php mysql cakephp model multiple-databases
GSP: check if model (variable) is empty not working

Im new to grails (1.3.7) and Im trying to get something to work: In my controller, I give back a few …

grails groovy model gsp
DDD - Persistence Model and Domain Model

I am trying to learn domain-driven design (DDD), and I think I got the basic idea. But there is something …

oop model repository domain-driven-design repository-pattern
Helper methods for models in Rails

Is there a proper place for helper methods for models in Rails? There are helper methods for controllers and views, …

ruby-on-rails ruby ruby-on-rails-4 model ruby-on-rails-4.2
Laravel 5.0, Cannot redeclare class App\models\Category

I recently upgraded my project from laravel 4.2 to laravel 5.0 and have been facing several errors. I didn't define any namespaces …

model runtime-error laravel-5 redeclaration
How to convert model data objects array to dataProvider

Suppose I have model User which have many to many relation to itself named as friends. so $user->friends (…

php model yii dataprovider
Rails Model has_many with multiple foreign_keys

Relatively new to rails and trying to model a very simple family "tree" with a single Person model that has …

ruby-on-rails ruby model has-many
Best practices for grails index page

What is the right way to populate the model for the index page in a grails app? There is no …

grails indexing model