Questions tagged as 'model'

1
answer

Array saving data in the bank with a field written array

I have two fields which saved in the database (in this case would be to review the application in magento, but that does not matter much). These fields are being saved correctly, but with a problem, it saves one of the fields written array...
asked by 11.10.2017 / 21:43
0
answers

How to check in the API if a user who is being searched in the database is the user that is logged in?

I am using Laravel and I need to create an attribute (is_me) in the model to know if the current profile belongs to the user that is logged in; I was doing as below, but now that I'm using API I can no longer use Auth :: user () public func...
asked by 30.05.2017 / 21:27
0
answers

django permission

Good afternoon, I'm wanting in the template to make a loop to disable a button according to custom permission. The model code is: # -*- coding: utf8 -*- from __future__ import unicode_literals from django.db import models from django.contrib.a...
asked by 13.03.2017 / 21:36
2
answers

How do I perform the filling of an information that is in a JSON complex type?

I'm trying to fill in an ICollection type that is owned by my Professional template. When executing the request I pass the information via JSON ButintheVSandGETdebugtheinformationisnotthere!     
asked by 02.10.2018 / 20:22
1
answer

How to dynamically change model data when changing value from the list that fills it?

I have a JTable where I have a column named colun1 I want to know how do I change the JTable data when any data in the list that fills it changes. Example I have a list with name of listString with 3 values "String 1" "String 2" "String 3"...
asked by 13.12.2017 / 17:16
1
answer

MEAN STACK: Mongoose model blocks communication with my controller

My controller does not send data to my router when my Model is being exported into the application and I do not know why this happens. controller.js var Model = require('../models/dado.js'); exports.listaDados = function(req, res) {...
asked by 01.06.2017 / 13:59
1
answer

What size should I use for 3d models imported into Unity 3D?

I'm starting a new project on Unity 3D using free 3d models from the internet, I imported a building but when I went to open in Unity it was gigantic compared to the standard Unity character! My question is if I should lower the building or incr...
asked by 10.06.2018 / 00:21
1
answer

Model List arrives outdated in controller - Asp.Net mvc

I have a ViewModel with two lists of objects. The first one is an editable column, where you can change a numeric value. After changing the values of the "ListTipos" in the view, it does not arrive with the new values in the controller....
asked by 23.10.2018 / 01:53