I'm declaring a function (data_prox_prog) to calculate a future date and store in the model, but it's not happening as expected.
Here is the code:
class ProgressaoDocente(models.Model):
servidor = models.ForeignKey(Servidor, on_delete=models.P...
MVC scenario, where Controller talks to Application that talks to Domain.
I'm trying to do a one-to-many mapping with AutoMapper.
This is my Model:
public class Estado
{
public Guid EstadoId { get; set; }
public string Nome { get...
I want to make the MultiSelectField field not mandatory. When I do not choose any of the options the validation is accusing Required field . I've tried using the parameters blank = True and null = True, but still continue to accuse the field...
I'm developing a screen in AspNet Mvc where I have an index screen that has a model called ParameterizationVM and on that screen I have a partialView that displays the units (which is a List<Unidades> that is contained in the parame...
I have a GridMvc in my form where it displays a list of units, in this grid has a text field, and a checkbox, I would like when the user type some text box or flag the check, that change reflects on the model. / p>
View:
<b>Seleci...
In the Index Method I can set values in the model and initialize my VIEW with pre-defined values. But when I do the POST to the START method, when I change the Aquedica property, the value is not being passed to the view, this actually happens w...
Hello everyone. I have some questions:
We assume that I want to display a table of files that are registered in the database.
In my FilesController.php, I have:
public function carregarLista($status){
$this->arquivosModel->set...
I have 3 Models that are populated by 3 procedures . Home
Is there a smarter way to popular these and Models ?
Models:
public class Clientes
{
public int IdCliente { get; set; }
public string Nome {...
I'm trying to use relationships to display data on the screen but I get the following error:
Trying to get property 'name' of non-object
In this command
$recebimento->planoconta()->get()->first()->nome
MODEL ACCOUNT...
Next, in my model :
public function indicacao()
{
return $this->hasMany(User::class, 'indicacao','name');
}
public function todasindicacoes()
{
return $this->indicacao()->with('todasindicacoes');
}
and my controll...