Questions tagged [crud]

The four basic operations for a data management system : Create, Read, Update, Delete

The four basic operations that can be used on a relational database table are

  • C reating
  • R eading
  • U pdating
  • D eleting

A CRUD application is one that performs these basic operations. A CRUD framework is an application framework that gives these functionalities as a base for the development.

Also see: , ,

4608 questions
1
vote
2 answers

Symfony2 Datetime TransformationFailed Exception

i'm stuck in error when try to generate CRUD in symfony2 I always get the following exception: "Unable to transform value for property path "xxx": Expected a \DateTime or \DateTimeInterface." it always happened with the any datetime field here is…
hero789
  • 11
  • 1
  • 5
1
vote
2 answers

Doing HTTP request on client-side using AngularJS

After successfully finishing this tutorial, I started building my app routes to handle the creation of some dummy models in the database, which works just fine when I request them through Postman app (using the follwing URL:…
Roger
  • 1,053
  • 1
  • 8
  • 14
1
vote
1 answer

mongodb crud on nested documents

I'm trying to find out if there is a best practice on handling CRUD on nested MongoDB documents from a client application like a MEAN stack application. The answers don't have to be specific to MongooseJS or directly connecting to MongoDB in the…
King Wilder
  • 629
  • 1
  • 7
  • 19
1
vote
0 answers

"findOne()" equivalent to add to MEANjs user profile with articles list functionality

Building on the self-answer to this excellent question: MEANJS user profile functionality. They wanted to add the functionality to the meanjs scaffold that you can navigate to any user's page and you'll get essentially a profile page with a list of…
1
vote
2 answers

Spring MVC CRUD Controller with Ember Data

I have an CRUD Controller in a Spring MVC API. This is my create method: @Override @JsonView(ApiView.FormView.class) @RequestMapping(method = RequestMethod.POST, consumes = ApiMediaType.jsonContentType, produces =…
user862412
1
vote
1 answer

.NET C# CRUD operations work but never gets updated in the Database

My Create and Delete operations are proccessed succesfully with no errors but does nothing. When I try to create a new Product and save it, it doesn't show up on my table. When I try to delete a product, it doesn't get deleted. I believe the problem…
TykiMikk
  • 1,058
  • 3
  • 15
  • 31
1
vote
2 answers

Play 2 / Scala - Generic Reactive Mongo CRUD - json serialization

I`ve found some questions that are very close to my question (e.g. Play Framework / Scala: abstract repository and Json de/serialization) but they didnt solve my problem. What I`m trying to achieve is an abstraction of my CRUD DAO for the common…
heiningair
  • 441
  • 1
  • 6
  • 23
1
vote
0 answers

sails findOrCreate with check data before create from relation has many?

how to findOrCreate with check data before create from relation has many on sails? example model : 1. Thread.js module.exports = { attributes: { name: { type: "string" }, streams: { collection: "stream", …
monoy suronoy
  • 881
  • 5
  • 10
  • 19
1
vote
4 answers

PHP Beginner Column not found 1054 Unknown column

The goal is to code php files so I have the ability to perform CRUD functions on categories. I don't know what I'm doing wrong and why I'm getting an this error . Check the image below! But after changing it i get Column not found: 1054 Unknown…
TykiMikk
  • 1,058
  • 3
  • 15
  • 31
1
vote
1 answer

PHP Assigning Primary Key and Foreign Key

I'm trying to assign a Product to a Category and the only solution that I thought of is assigning the Primary Key (Category Id in class Category) with the Foreign Key (Category Id in class Product). Do i have to do something with the SQL code or…
TykiMikk
  • 1,058
  • 3
  • 15
  • 31
1
vote
0 answers

Cannot use a Remove ⇒ AddOrUpdate sequence with Entity Framework

I have a method that will Remove a set of entities. I have a method that will AddOrUpdate a set of entities. These methods are independently useful, but they have issues working together in entity framework. The problem is that after removing a set…
Triynko
  • 18,766
  • 21
  • 107
  • 173
1
vote
0 answers

How to implement CRUD with subdocs on a MEAN stack?

Working on my first MEAN.JS project, I have the following (simplified) subdoc'ed schema arrangement representing members of a group assigned to one another (for a Secret Santa website): var MemberSchema = new Schema({ displayName: { type: String…
0x24a537r9
  • 968
  • 1
  • 10
  • 24
1
vote
1 answer

Is it a good practise to have a single controller, service and view for all CRUD operations in AngularJS?

I am new to AngularJS and I am exploring best practises to start an application using MVC. The options I found on the internet are each view should have one controller, the controller is responsible for every action in view and all the methods…
1
vote
1 answer

Resource Route returns blank page

I'm trying to create a resource controller (for CRUD) in Laravel 5.1. I added this to the app/Http/routes.php:
Alexander
  • 396
  • 1
  • 9
  • 19
1
vote
1 answer

Yii How to get to Crud Generator

Need help! How can I go to CRUD generator in yii? I just created my application but when I try entering localhost/myapp/index.php?r=gii it says that "Unable to resolve the request gii" Anyone? PLease help me. THanks a lot!
PHP Noob
  • 79
  • 6