From e3345f30efa399112f68756d7026e0d225985de9 Mon Sep 17 00:00:00 2001 From: Max Loeb Date: Mon, 23 Oct 2023 23:32:41 -0700 Subject: [PATCH] remove unused files --- docs/associations.md | 2 -- docs/configuration.md | 0 docs/introduction.md | 27 --------------------------- 3 files changed, 29 deletions(-) delete mode 100644 docs/associations.md delete mode 100644 docs/configuration.md delete mode 100644 docs/introduction.md diff --git a/docs/associations.md b/docs/associations.md deleted file mode 100644 index c22936f8..00000000 --- a/docs/associations.md +++ /dev/null @@ -1,2 +0,0 @@ -# Associations -TODO: fill me in \ No newline at end of file diff --git a/docs/configuration.md b/docs/configuration.md deleted file mode 100644 index e69de29b..00000000 diff --git a/docs/introduction.md b/docs/introduction.md deleted file mode 100644 index 21a50599..00000000 --- a/docs/introduction.md +++ /dev/null @@ -1,27 +0,0 @@ -# Introduction - -php-activerecord is an implementation of Active Record, a design pattern with the goal of seamlessly mapping database table rows to objects. Aside from some initial one-time setup, you don't have to write any getters or setters or teach your object class about the columns in the table; you simply define a bare-bones wrapper class that extends a Model base class, and all of the getters and setters and knowledge of columns are extrapolated automatically from queries to the database (which are cached). Changes made to an instance of the class are persisted to your database. - - You can read more about the idea [here](https://en.wikipedia.org/wiki/Active_record_pattern) - - Provided you follow some conventions, your wrapper class may be as simple as: - ```php - class Author extends ActiveRecord\Model { - } - ``` - - You are then ready to access rows from your database's authors table and make edits: - ``` - $person = Person::find(3); // find author with id of 3 - echo $person->first_name; // "Bruce" - echo $person->age; // 63 - - echo gettype($person->first_name); // "string" - echo gettype($person->age); // "integer" - - $person->first_name = "Caitlyn"; - $person->save(); - echo $person->first_name; // "Caitlyn - ``` - - See the other pages in this documentation for details.