Skip to content

Commit 0264903

Browse files
sinbadxiiiniden
authored andcommitted
replace Phalcon\DataMapper\Connection to Phalcon\DataMapper\Pdo\Connection
1 parent 4cbe5dd commit 0264903

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: docs/datamapper.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ You will only need to substitute the values in `<>` with the respective values f
4242
```php
4343
<?php
4444

45-
use Phalcon\DataMapper\Connection;
45+
use Phalcon\DataMapper\Pdo\Connection;
4646

4747
$host = '127.0.0.1';
4848
$database = 'phalon_test';
@@ -546,7 +546,7 @@ The [Phalcon\DataMapper\Profiler\Profiler][datamapper-pdo-profiler-profiler] can
546546
```php
547547
<?php
548548

549-
use Phalcon\DataMapper\Connection;
549+
use Phalcon\DataMapper\Pdo\Connection;
550550
use Phalcon\DataMapper\Profiler\MemoryLogger;
551551
use Phalcon\DataMapper\Profiler\Profiler;
552552

@@ -627,7 +627,7 @@ The parameters available are:
627627

628628
## Query
629629
### Factory
630-
The `Phalcon\DataMapper\Query` namespace offers a handy factory, which allows for a quick and easy creation of query objects, whether this is `select`, `insert`, `update` or `delete. The methods exposed by the [Phalcon\DataMapper\Query\QueryFactory][datamapper-query-queryfactory] accept a [Phalcon\DataMapper\Connection][datamapper-pdo-connection], binding the resulting object with the connection.
630+
The `Phalcon\DataMapper\Query` namespace offers a handy factory, which allows for a quick and easy creation of query objects, whether this is `select`, `insert`, `update` or `delete. The methods exposed by the [Phalcon\DataMapper\Query\QueryFactory][datamapper-query-queryfactory] accept a [Phalcon\DataMapper\Pdo\Connection][datamapper-pdo-connection], binding the resulting object with the connection.
631631

632632
#### Methods
633633

@@ -665,7 +665,7 @@ Create a new Update object
665665
```php
666666
<?php
667667

668-
use Phalcon\DataMapper\Connection;
668+
use Phalcon\DataMapper\Pdo\Connection;
669669
use Phalcon\DataMapper\Query\QueryFactory;
670670

671671
$host = '127.0.0.1';
@@ -1118,12 +1118,12 @@ Indents a collection
11181118

11191119

11201120
#### Activation
1121-
To instantiate a [Phalcon\DataMapper\Query\Insert][datamapper-query-insert] builder, you can use the [Phalcon\DataMapper\Query\QueryFactory][datamapper-query-queryfactory] with a [Phalcon\DataMapper\Connection][datamapper-pdo-connection].
1121+
To instantiate a [Phalcon\DataMapper\Query\Insert][datamapper-query-insert] builder, you can use the [Phalcon\DataMapper\Query\QueryFactory][datamapper-query-queryfactory] with a [Phalcon\DataMapper\Pdo\Connection][datamapper-pdo-connection].
11221122

11231123
```php
11241124
<?php
11251125

1126-
use Phalcon\DataMapper\Connection;
1126+
use Phalcon\DataMapper\Pdo\Connection;
11271127
use Phalcon\DataMapper\Query\QueryFactory;
11281128

11291129
$host = '127.0.0.1';
@@ -1323,12 +1323,12 @@ echo $insert->getStatement();
13231323
### Select
13241324

13251325
#### Activation
1326-
To instantiate a [Phalcon\DataMapper\Query\Select][datamapper-query-select] builder, you can use the [Phalcon\DataMapper\Query\QueryFactory][datamapper-query-queryfactory] with a [Phalcon\DataMapper\Connection][datamapper-pdo-connection].
1326+
To instantiate a [Phalcon\DataMapper\Query\Select][datamapper-query-select] builder, you can use the [Phalcon\DataMapper\Query\QueryFactory][datamapper-query-queryfactory] with a [Phalcon\DataMapper\Pdo\Connection][datamapper-pdo-connection].
13271327

13281328
```php
13291329
<?php
13301330

1331-
use Phalcon\DataMapper\Connection;
1331+
use Phalcon\DataMapper\Pdo\Connection;
13321332
use Phalcon\DataMapper\Query\QueryFactory;
13331333

13341334
$host = '127.0.0.1';

0 commit comments

Comments
 (0)