PHP Classes
elePHPant
Icontem

File: sample/Empresa/Classes/Empresa.json

Recommend this page to a friend!
  Classes of Rafael Becker  >  PHP Expressive  >  sample/Empresa/Classes/Empresa.json  >  Download  
File: sample/Empresa/Classes/Empresa.json
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Expressive
Base class for Object Relational Mapping
Author: By
Last change:
Date: 1 month ago
Size: 806 bytes
 

Contents

Class file image Download
{
  "database": {
    "repository": "tbempresa",
    "keys": "empcodigo"
  },
  "properties": [
    {
      "alias": "iEmpCodigo",
      "property": "empcodigo",
      "type": "int",
      "behavior": {
        "required": "true",
        "autoIncrement": "true",
        "incrementalBehavior": "application"
      }
    },
    {
      "alias": "sEmpNome",
      "property": "empnome",
      "type": "string"
    },
    {
      "alias": "aProduto",
      "property": "produtos",
      "type": "undefined",
      "composition": {
        "class": "Sample\\Produto\\Classes\\Produto",
        "relationship": {
          "type": "hasMany",
          "source": {
            "field": "empcodigo",
            "refers": "empcodigo"
          }
        }
      }
    }
  ]
}