File: test/js/out.txt

Recommend this page to a friend!
  Classes of Nikos M.  >  Dialect PHP ORM Library  >  test/js/out.txt  >  Download  
File: test/js/out.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: Dialect PHP ORM Library
Store and retrieve objects in database using ORM
Author: By
Last change: v.1.0.0 contd

* php,py,js rename some methods which used get.., set.. magic methods prefix
* js: fix proxy appeared as thenable and broke async/await in some cases
* update test examples
Date: 3 months ago
Size: 10,116 bytes
 

Contents

Class file image Download
Posts: 9
Users: 9
Posts:
[
    {
        "id": 8,
        "content": "a php post..",
        "comments": [
            {
                "id": 10,
                "content": "a php comment..",
                "post_id": 8
            },
            {
                "id": 11,
                "content": "another php comment..",
                "post_id": 8
            }
        ],
        "authors": [
            {
                "id": 3,
                "name": "php user"
            }
        ]
    },
    {
        "id": 10,
        "content": "a py post..",
        "comments": [
            {
                "id": 12,
                "content": "a py comment..",
                "post_id": 10
            },
            {
                "id": 13,
                "content": "another py comment..",
                "post_id": 10
            }
        ],
        "authors": [
            {
                "id": 4,
                "name": "py user"
            }
        ]
    },
    {
        "id": 12,
        "content": "a js post..",
        "comments": [
            {
                "id": 14,
                "content": "a js comment..",
                "post_id": 12
            },
            {
                "id": 15,
                "content": "another js comment..",
                "post_id": 12
            }
        ],
        "authors": [
            {
                "id": 5,
                "name": "js user"
            }
        ]
    },
    {
        "id": 13,
        "content": "another php post..",
        "meta": {
            "id": 1,
            "status": "approved",
            "type": "article",
            "post_id": 13
        },
        "comments": [
            {
                "id": 16,
                "content": "still another php comment..",
                "post_id": 13
            },
            {
                "id": 17,
                "content": "one more php comment..",
                "post_id": 13
            }
        ],
        "authors": [
            {
                "id": 6,
                "name": "another php user"
            }
        ]
    },
    {
        "id": 14,
        "content": "another py post..",
        "meta": {
            "id": 2,
            "status": "approved",
            "type": "article",
            "post_id": 14
        },
        "comments": [
            {
                "id": 18,
                "content": "still another py comment..",
                "post_id": 14
            },
            {
                "id": 19,
                "content": "one more py comment..",
                "post_id": 14
            }
        ],
        "authors": [
            {
                "id": 7,
                "name": "another py user"
            }
        ]
    },
    {
        "id": 15,
        "content": "another js post..",
        "meta": {
            "id": 3,
            "status": "approved",
            "type": "article",
            "post_id": 15
        },
        "comments": [
            {
                "id": 20,
                "content": "still another js comment..",
                "post_id": 15
            },
            {
                "id": 21,
                "content": "one more js comment..",
                "post_id": 15
            }
        ],
        "authors": [
            {
                "id": 8,
                "name": "another js user"
            }
        ]
    },
    {
        "id": 16,
        "content": "yet another php post..",
        "meta": {
            "id": 4,
            "status": "approved",
            "type": "article",
            "post_id": 16
        },
        "comments": [
            {
                "id": 22,
                "content": "yet still another php comment..",
                "post_id": 16
            },
            {
                "id": 23,
                "content": "yet one more php comment..",
                "post_id": 16
            }
        ],
        "authors": [
            {
                "id": 3,
                "name": "php user"
            },
            {
                "id": 9,
                "name": "yet another php user"
            }
        ]
    },
    {
        "id": 17,
        "content": "yet another py post..",
        "meta": {
            "id": 5,
            "status": "approved",
            "type": "article",
            "post_id": 17
        },
        "comments": [
            {
                "id": 24,
                "content": "yet still another py comment..",
                "post_id": 17
            },
            {
                "id": 25,
                "content": "yet one more py comment..",
                "post_id": 17
            }
        ],
        "authors": [
            {
                "id": 4,
                "name": "py user"
            },
            {
                "id": 10,
                "name": "yet another py user"
            }
        ]
    },
    {
        "id": 18,
        "content": "yet another js post..",
        "meta": {
            "id": 6,
            "status": "approved",
            "type": "article",
            "post_id": 18
        },
        "comments": [
            {
                "id": 26,
                "content": "yet still another js comment..",
                "post_id": 18
            },
            {
                "id": 27,
                "content": "yet one more js comment..",
                "post_id": 18
            }
        ],
        "authors": [
            {
                "id": 5,
                "name": "js user"
            },
            {
                "id": 11,
                "name": "yet another js user"
            }
        ]
    }
]
Posts:
[
    {
        "id": 8,
        "content": "a php post..",
        "comments": [
            {
                "id": 10,
                "content": "a php comment..",
                "post_id": 8
            }
        ],
        "authors": [
            {
                "id": 3,
                "name": "php user"
            }
        ]
    },
    {
        "id": 10,
        "content": "a py post..",
        "comments": [
            {
                "id": 12,
                "content": "a py comment..",
                "post_id": 10
            }
        ],
        "authors": [
            {
                "id": 4,
                "name": "py user"
            }
        ]
    },
    {
        "id": 12,
        "content": "a js post..",
        "comments": [
            {
                "id": 14,
                "content": "a js comment..",
                "post_id": 12
            }
        ],
        "authors": [
            {
                "id": 5,
                "name": "js user"
            }
        ]
    },
    {
        "id": 13,
        "content": "another php post..",
        "meta": {
            "id": 1,
            "status": "approved",
            "type": "article",
            "post_id": 13
        },
        "comments": [
            {
                "id": 16,
                "content": "still another php comment..",
                "post_id": 13
            }
        ],
        "authors": [
            {
                "id": 6,
                "name": "another php user"
            }
        ]
    },
    {
        "id": 14,
        "content": "another py post..",
        "meta": {
            "id": 2,
            "status": "approved",
            "type": "article",
            "post_id": 14
        },
        "comments": [
            {
                "id": 18,
                "content": "still another py comment..",
                "post_id": 14
            }
        ],
        "authors": [
            {
                "id": 7,
                "name": "another py user"
            }
        ]
    },
    {
        "id": 15,
        "content": "another js post..",
        "meta": {
            "id": 3,
            "status": "approved",
            "type": "article",
            "post_id": 15
        },
        "comments": [
            {
                "id": 20,
                "content": "still another js comment..",
                "post_id": 15
            }
        ],
        "authors": [
            {
                "id": 8,
                "name": "another js user"
            }
        ]
    },
    {
        "id": 16,
        "content": "yet another php post..",
        "meta": {
            "id": 4,
            "status": "approved",
            "type": "article",
            "post_id": 16
        },
        "comments": [
            {
                "id": 22,
                "content": "yet still another php comment..",
                "post_id": 16
            }
        ],
        "authors": [
            {
                "id": 3,
                "name": "php user"
            },
            {
                "id": 9,
                "name": "yet another php user"
            }
        ]
    },
    {
        "id": 17,
        "content": "yet another py post..",
        "meta": {
            "id": 5,
            "status": "approved",
            "type": "article",
            "post_id": 17
        },
        "comments": [
            {
                "id": 24,
                "content": "yet still another py comment..",
                "post_id": 17
            }
        ],
        "authors": [
            {
                "id": 4,
                "name": "py user"
            },
            {
                "id": 10,
                "name": "yet another py user"
            }
        ]
    },
    {
        "id": 18,
        "content": "yet another js post..",
        "meta": {
            "id": 6,
            "status": "approved",
            "type": "article",
            "post_id": 18
        },
        "comments": [
            {
                "id": 26,
                "content": "yet still another js comment..",
                "post_id": 18
            }
        ],
        "authors": [
            {
                "id": 5,
                "name": "js user"
            },
            {
                "id": 11,
                "name": "yet another js user"
            }
        ]
    }
]

For more information send a message to info at phpclasses dot org.