PHP Classes

File: tests/ActiveRecordTest.php

Recommend this page to a friend!
  Classes of Lars Moelleken   Simple Active Record   tests/ActiveRecordTest.php  
File: tests/ActiveRecordTest.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Simple Active Record
Store and fetch data with Active Records pattern
Author: By
Last change: [+]: add new "whereEscape()" method

-> use db->escape()
[+]: update vendor libs
[+]: use "CollectionActiveRecord::createFromGeneratorFunction()"
[+]: add "fetchOneByQueryOrThrowException()"

-> + check if "fetchOneByQuery()" will only fetch one entry, otherwise we will throw a exception
[+]: yield all the things :)
[+]: use collections for the results
[+]: add a simple "addRelation()" method + use "hashids/hashids"
[+]: move from "Simple MySQLi" into this repository
Date: 2 days ago
Size: 20,675 bytes

 

You need to be a registered user and login to get this file.

Login Immediately with your account on: