Skip to content

Commit

Permalink
Merge branch 'master' of github.com:oscarotero/simplecrud
Browse files Browse the repository at this point in the history
Conflicts:
	SimpleCrud/Entity.php
  • Loading branch information
oscarotero committed Jan 27, 2014
2 parents 46a5460 + c662a3e commit 55a5ef3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SimpleCrud has the following classes:

Create a new entity for each table in the database in a common namespace:

```
```php
namespace MyApp\Entities;

use SimpleCrud\Entity;
Expand Down Expand Up @@ -298,4 +298,4 @@ $post->comments; //Access to the cached result instead execute getComments() aga
$post->lowercaseTitle; //Execute getLowercaseTitle() and save the result in $post->lowercaseTitle;
```

Check the commented code to know full API.
Check the commented code to know full API.
4 changes: 2 additions & 2 deletions SimpleCrud/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,10 @@ public function update (array $data, $where = '', $marks = null, $limit = null,

unset($data['id']);

if (empty($data)) {
if (!$data) {
return $data;
}

$quoted = $this->manager->quote($data, $this->getFields(self::FIELDS_DATA_TYPE));
$set = [];

Expand Down

0 comments on commit 55a5ef3

Please sign in to comment.