Skip to content
This repository was archived by the owner on Jun 16, 2024. It is now read-only.

Commit 17dec49

Browse files
author
Tilo Kowalski
committed
refactor project
1 parent fc835bf commit 17dec49

File tree

8 files changed

+15
-61
lines changed

8 files changed

+15
-61
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
# Flink - PHP ORM Library
1+
# Flink - PHP Magic ORM Library
22

33
**Development has been discontinued and further use is not recommended.**
44

5-
Library for automatic database entity mapping, fully functioning by magic methods.
5+
This project was a great learning experience for me and I formerly used it for a couple of personal projects. However, it does not meet my current standards for safety and code quality and I would not recommend using it for any new projects, especially not for production.
6+
7+
## About the project
8+
9+
Flink is a Library for automatic database entity mapping, fully functioning by magic methods.
10+
Entities are represented by classes which extend the `Entity` class. Each Entity requires a corresponding list and mapper class and can be used to automatically map database entries to objects and vice versa.

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "tilokowalski/flink",
33
"description": "ORM Library",
4-
"type": "library",
54
"license": "Apache-2.0",
5+
"type": "library",
66
"autoload": {
77
"psr-4": {
88
"Flink\\": "src/"
@@ -11,11 +11,11 @@
1111
"authors": [
1212
{
1313
"name": "Tilo Kowalski",
14-
"email": "privat@tilokowalski.de"
14+
"email": "dev@tilokowalski.de"
1515
}
1616
],
1717
"minimum-stability": "stable",
1818
"require": {
19-
"tilokowalski/delight": "^1.5"
19+
"tilokowalski/delight": "^1.0"
2020
}
2121
}

composer.lock

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/Exception/Database.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ public function __construct(?string $message = null) {
88
if (null === $message) $message = 'failed to handle database';
99
parent::__construct($message);
1010
}
11+
1112
}

src/Exception/Database/QueryException.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ class QueryException extends \Flink\Exception\Database {
88
public function __construct(mysqli_sql_exception $exception, string $query) {
99
parent::__construct('"' . $query . '" ' . $exception->getMessage());
1010
}
11+
1112
}

src/Exception/Entity.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ public function __construct(?string $message = null) {
88
if (null === $message) $message = 'failed to handle entity';
99
parent::__construct($message);
1010
}
11+
1112
}

src/Exception/Entity/UndefinedFunction.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ public function __construct(?string $message = null) {
88
if (null === $message) $message = 'called function is not defined';
99
parent::__construct($message);
1010
}
11+
1112
}

src/Exception/Entity/UnmappedProperty.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ public function __construct(string $class, string $attribute) {
88
$message = $class . '->' . $attribute . ' is neither a property nor a mapped relation';
99
parent::__construct($message);
1010
}
11+
1112
}

0 commit comments

Comments
 (0)