Nguyen Tien Si
GO1
Any defined chunk of data in Drupal. This includes things like nodes, users, taxonomy terms, files, etc. Contributed modules can define custom entities. Each entity type can have multiple bundles.
Source: https://www.drupal.org/glossary#entity

In earlier versions of Drupal, the field system was only used on content types. Now, thanks to the Entity API, we can add fields to other things, like comments. Fieldable entities make Drupal eminently flexible. An entity type is a useful abstraction to group together fields.
Example: Node, Product, Order,...
Bundles are an implementation of an entity type to which fields can be attached. You can consider bundles as subtypes of an entity type. With content nodes (an entity type), for example, you can generate bundles (subtypes) like articles, blog posts, or products.
A field is a reusable piece of content. In technical terms, each field is a primitive data type, with custom validators and widgets for editing and formatters for display. You can read further for a developer's guide to using the Drupal 7 Fields API.

Fields & Field instances

Fields & Fields instances in Database

Fields & Fields instances in Database






<?php
$node->field_number[LANGUAGE_NONE][0]['value'];
?><?php
$node_wrapper->field_number->value();
?>After
Before