src/NGB/Db/MySQLy/Model.php
public function insert( ) {
		//	http://es1.php.net/manual/es/mysqli-stmt.bind-param.php
		//	http://stackoverflow.com/questions/371644/using-nulls-in-a-mysqli-prepared-statement	--	http://stackoverflow.com/a/6892491
		//	http://no2.php.net/manual/en/mysqli-stmt.bind-param.php#89171
		//	http://www.pontikis.net/blog/dynamically-bind_param-array-mysqli
		
		$query = "INSERT INTO ".static::getTable()." ";
		
		$atributos = $this->atributos;
		
		$a_params[0] = 'lie';
//print_r($atributos);
		
		$set = '';
		$values = '';
		$strType = '';
		foreach ( $atributos as $k => $v ) {
			$set .= ','.$k;
			$values .= ',?';
			$a_params[] = & $atributos[$k];
			
			if ( null === $v ) {
				$strType .= 's';
			}else {
				$chrType = substr((string)gettype($v),0,1);
				$strType .= (!in_array($chrType,array("i","d","s"))) ? "b" : $chrType;
			}
		}
		
		$query .= '('.substr($set,1).') VALUES ('.substr($values,1).')';

		$stmt = $this->setConexion()->prepare( $query );
		
		$a_params[0] = & $strType;
//print_r($a_params);
		call_user_func_array(array($stmt, 'bind_param'), $a_params);
		
		$this->setConexion()->execute();		
		
// if ( $selectAtributos ) {
//     $this->atributos = static::select( 'WHERE '.static::getId().' = ?', $stmt->insert_id )->atributos;
// }
		$this->atributos = static::select( 'WHERE '.static::getId().' = ?', $stmt->insert_id )->atributos;
	}
public function insert( ) {
		//	http://es1.php.net/manual/es/mysqli-stmt.bind-param.php
		//	http://stackoverflow.com/questions/371644/using-nulls-in-a-mysqli-prepared-statement	--	http://stackoverflow.com/a/6892491
		//	http://no2.php.net/manual/en/mysqli-stmt.bind-param.php#89171
		//	http://www.pontikis.net/blog/dynamically-bind_param-array-mysqli
		
		$query = "INSERT INTO ".static::getTable()." ";
		
		$atributos = $this->atributos;
		
		$a_params[0] = 'lie';
//print_r($atributos);
		
		$set = '';
		$values = '';
		$strType = '';
		foreach ( $atributos as $k => $v ) {
			$set .= ','.$k;
			$values .= ',?';
			$a_params[] = & $atributos[$k];
			
			if ( null === $v ) {
				$strType .= 's';
			}else {
				$chrType = substr((string)gettype($v),0,1);
				$strType .= (!in_array($chrType,array("i","d","s"))) ? "b" : $chrType;
			}
		}
		
		$query .= '('.substr($set,1).') VALUES ('.substr($values,1).')';

		$stmt = $this->setConexion()->prepare( $query );
		
		$a_params[0] = & $strType;
//print_r($a_params);
		call_user_func_array(array($stmt, 'bind_param'), $a_params);
		
		$this->setConexion()->execute();		
		
// if ( $selectAtributos ) {
//     $this->atributos = static::select( 'WHERE '.static::getId().' = ?', $stmt->insert_id )->atributos;
// }
		$this->atributos = static::select( 'WHERE '.static::getId().' = ?', $stmt->insert_id )->atributos;
	}
public function insert( $selectAtributos = true ) {