Alexander Matrosov

  • Registered on: 2014-07-07
  • Last connection: 2016-05-18

Activity

Reported issues: 0

2016-05-18

03:12 PM PHP ActiveRecord Help: RE: Get last n record of table
example
<pre class="code">
<?php
$guest = new Guestbook();
$guest->token = Request::input('token', true);
$guest...
03:03 PM PHP ActiveRecord Help: RE: PHP7 Incorrect datetime value: '2016-05-14 19:34:37 UTC'
after the initialization list the following code
ActiveRecord\Connection::$datetime_format = 'Y-m-d H:i:s';

2015-03-22

07:34 PM PHP ActiveRecord Help: RE: how to check the length of the password
yet solved the problem in this way, but I think it is not very good
<pre class="code">
function before_save()
{
...
06:37 PM PHP ActiveRecord Help: how to check the length of the password
<pre class="code">
<?php
static $validates_size_of = [
['password', 'minimum' => 6, 'too_short' => 'short passwor...

2015-01-24

01:53 PM PHP ActiveRecord Help: Creating a record simultaneously in two tables
Please write an example of how to create a record in the 2 tables
Such as the creation of topics and posts in this t...

2014-07-17

04:13 AM PHP ActiveRecord Help: RE: Select MAX()
$max = Model::find(array('select' => 'max(id)'));

2014-07-07

02:07 AM PHP ActiveRecord Help: how to check the existence of a connection
<?php
class Guest extends ActiveRecord\Model {
static $table_name = 'guest';
static $belongs_to = array(
...

Also available in: Atom