diff --git a/.gitattributes b/.gitattributes index 0870c77..d3424bb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,3 @@ .gitattributes export-ignore .gitignore export-ignore -tests/ export-ignore \ No newline at end of file +tests/ export-ignore diff --git a/LICENSE.md b/LICENSE.md index e1629bc..e64375e 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,5 +1,5 @@ The MIT License (MIT) -======== +===================== Copyright (c) 2013 Michal Bohuslávek diff --git a/LeanMapperQuery/Caller.php b/LeanMapperQuery/Caller.php index ee5e7d2..9e5785f 100644 --- a/LeanMapperQuery/Caller.php +++ b/LeanMapperQuery/Caller.php @@ -9,18 +9,19 @@ namespace LeanMapperQuery; /** + * There are 4 possibilities: + * a) caller is just instance of + * LeanMapper\Caller: + * 1) caller is entity + * 2) caller is repository + * b) caller is instance of this class + * (LeanMapperQuery\Caller): + * 3) caller is query object + * 4) if method self::isEntity return TRUE, + * caller is query object via entity + * * @author Michal Bohuslávek */ class Caller extends \LeanMapper\Caller { - // There are 4 possibilities: - // a) caller is just instance of - // LeanMapper\Caller: - // 1) caller is entity - // 2) caller is repository - // b) caller is instance of this class - // (LeanMapperQuery\Caller): - // 3) caller is query object - // 4) if method self::isEntity return TRUE, - // caller is query object via entity } diff --git a/LeanMapperQuery/Exception/Exception.php b/LeanMapperQuery/Exception/Exception.php index 0c92775..56cc0be 100644 --- a/LeanMapperQuery/Exception/Exception.php +++ b/LeanMapperQuery/Exception/Exception.php @@ -13,5 +13,4 @@ */ class Exception extends \Exception { - } diff --git a/LeanMapperQuery/Exception/InvalidArgumentException.php b/LeanMapperQuery/Exception/InvalidArgumentException.php index 4ae42f0..cf8801d 100644 --- a/LeanMapperQuery/Exception/InvalidArgumentException.php +++ b/LeanMapperQuery/Exception/InvalidArgumentException.php @@ -13,5 +13,4 @@ */ class InvalidArgumentException extends Exception { - } diff --git a/LeanMapperQuery/Exception/InvalidMethodCallException.php b/LeanMapperQuery/Exception/InvalidMethodCallException.php index 4d38952..1f0ab3d 100644 --- a/LeanMapperQuery/Exception/InvalidMethodCallException.php +++ b/LeanMapperQuery/Exception/InvalidMethodCallException.php @@ -13,5 +13,4 @@ */ class InvalidMethodCallException extends Exception { - } diff --git a/LeanMapperQuery/Exception/InvalidRelationshipException.php b/LeanMapperQuery/Exception/InvalidRelationshipException.php index 93f1856..982fceb 100644 --- a/LeanMapperQuery/Exception/InvalidRelationshipException.php +++ b/LeanMapperQuery/Exception/InvalidRelationshipException.php @@ -13,5 +13,4 @@ */ class InvalidRelationshipException extends Exception { - } diff --git a/LeanMapperQuery/Exception/InvalidStateException.php b/LeanMapperQuery/Exception/InvalidStateException.php index 8596130..f016004 100644 --- a/LeanMapperQuery/Exception/InvalidStateException.php +++ b/LeanMapperQuery/Exception/InvalidStateException.php @@ -13,5 +13,4 @@ */ class InvalidStateException extends Exception { - } diff --git a/LeanMapperQuery/Exception/MemberAccessException.php b/LeanMapperQuery/Exception/MemberAccessException.php index cd61496..45b543e 100644 --- a/LeanMapperQuery/Exception/MemberAccessException.php +++ b/LeanMapperQuery/Exception/MemberAccessException.php @@ -13,5 +13,4 @@ */ class MemberAccessException extends Exception { - } diff --git a/LeanMapperQuery/Exception/NonExistingMethodException.php b/LeanMapperQuery/Exception/NonExistingMethodException.php index d06736d..5f1fd6c 100644 --- a/LeanMapperQuery/Exception/NonExistingMethodException.php +++ b/LeanMapperQuery/Exception/NonExistingMethodException.php @@ -13,5 +13,4 @@ */ class NonExistingMethodException extends Exception { - } diff --git a/LeanMapperQuery/Query.php b/LeanMapperQuery/Query.php index a8eac36..674cc1b 100644 --- a/LeanMapperQuery/Query.php +++ b/LeanMapperQuery/Query.php @@ -317,7 +317,7 @@ public function applyQuery(Fluent $fluent, IMapper $mapper) // specify $tableName when calling Query::applyQuery anymore. $fromClause = $fluent->_export('FROM'); if (count($fromClause) !== 3 || $fromClause[1] !== '%n') { - throw new InvalidArgumentException('Unsupported fluent from clase. Only one calling of \\LeanMapper\\Fluent::from method with pure table name as an argument is supported.'); + throw new InvalidArgumentException('Unsupported fluent from clause. Only one calling of \\LeanMapper\\Fluent::from method with pure table name as an argument is supported.'); } list(, , $this->sourceTableName) = $fromClause; $this->fluent = $fluent;