cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[2.0.x] Model->save() outputs array (Maybe dev debug output?)

Open michanismus opened this issue 11 years ago • 4 comments

Hey, to reproduce this, just clone tutorial from https://github.com/phalcon/tutorial.git

In index.php disable view:

...
 // Handle the request
$application = new Application($di);
$application->useImplicitView(false);
...

In IndexControler IndexAction do:

$user = new Users;
$user->save(['name' => 'michi', 'email' => '[email protected]']);

Open in the web browser and you will see a blank page with output:

Array
(
)

michanismus avatar Jun 07 '15 06:06 michanismus

Are you compiling from ext/ or build/?

andresgutierrez avatar Jun 08 '15 17:06 andresgutierrez

From /build

Sent from my iPhone

On Jun 9, 2015, at 0:07, Andres Gutierrez [email protected] wrote:

Are you compiling from ext/ or build/?

— Reply to this email directly or view it on GitHub.

michanismus avatar Jun 09 '15 02:06 michanismus

Can you compile please from ext/?

andresgutierrez avatar Jun 09 '15 02:06 andresgutierrez

Compiled from ext/ and there is no debug output anymore!

michanismus avatar Jun 09 '15 03:06 michanismus